home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Discovery Series: Yosemite / Multimedia Discovery Series: Yosemite.iso / pc / alchemy / alchemy.doc < prev    next >
Encoding:
Text File  |  1992-05-19  |  287.0 KB  |  8,927 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                                     Image Alchemy
  10.  
  11.  
  12.                                      Version 1.5
  13.  
  14.  
  15.  
  16.                                   November 11, 1991
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.                                Handmade Software, Inc.
  43.                            15951 Los Gatos Blvd., Suite 17
  44.                                 Los Gatos, CA  95032
  45.  
  46.                                    +1 408 358-1292
  47.                                  +1 408 356-4143 fax
  48.                                  +1 408 356-3297 BBS
  49.  
  50.                               Internet:  hsi@netcom.COM
  51.                               CompuServe:  71330,3136
  52.  
  53.  
  54.  
  55.  
  56.                        Demonstration Version Information
  57.  
  58.  
  59.           This is a demonstration version of Image Alchemy.  It's fully
  60.           functional except it can not handle images larger than 640 by
  61.           480.
  62.  
  63.           We encourage you to freely copy and distribute the demonstration
  64.           version of Image Alchemy provided that no fee is charged and the
  65.           distribution files are distributed in their original forms.
  66.  
  67.           For the registration fee, you will receive the current, retail
  68.           version of Image Alchemy without the 640 by 480 image size
  69.           restriction and a typeset and printed manual (complete with a
  70.           table of contents and an index).  You will be notified of
  71.           significant upgrades to Image Alchemy, you will be placed on a
  72.           mailing list to receive information about future products from
  73.           Handmade Software, and you will be entitled to phone and email
  74.           support.
  75.  
  76.           For ordering information please see the order form at the end of
  77.           this manual or in the file order.frm.
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.      ii
  111.  
  112.  
  113.  
  114.           Notice           Handmade Software, Inc. makes no warranty of any
  115.                            kind either expressed or implied.  In particular
  116.                            we make no warranty as to merchantability or
  117.                            fitness for a particular purpose.
  118.  
  119.                            In no event shall Handmade Software, Inc. be
  120.                            liable for any errors contained herein or for
  121.                            incidental or consequential damages in
  122.                            connection with the furnishing, performance, or
  123.                            use of the Image Alchemy product or
  124.                            documentation.
  125.  
  126.                            This document contains proprietary information
  127.                            which is protected by copyright.  No part of
  128.                            this document may be photocopied, reproduced, or
  129.                            translated without the prior written consent of
  130.                            Handmade Software, Inc.
  131.  
  132.                            The information in this document is subject to
  133.                            change without notice.
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.                            Copyright (c) 1990-1991 Handmade Software, Inc.
  160.  
  161.                            All Rights Reserved
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     iii
  169.  
  170.  
  171.  
  172.           Author credits
  173.  
  174.             Image Alchemy  Marcos H. Woehrmann
  175.            was written by  Allan N. Hessenflow
  176.                            David Kettmann
  177.  
  178.  
  179.  
  180.           Other credits
  181.  
  182.  
  183.            Marc Schneider  Who provided assistance with the Sun
  184.                            implementation of Image Alchemy including Beta
  185.                            testing and answering questions about the
  186.                            internal format of Sun Raster files.
  187.  
  188.  
  189.  
  190.               Jack, Norm,  Who proofread the manual (any remaining misteaks
  191.           Erwin, and Dave  are because we made changes after they read it
  192.                            for the final time).
  193.  
  194.  
  195.  
  196.             Everyone Else  Who gave us advice and assistance and especially
  197.                            to those people who sent us sample image files.
  198.  
  199.  
  200.  
  201.  
  202.  
  203.           Trademarks       Image Alchemy is a trademark of Handmade
  204.                            Software, Inc.
  205.  
  206.                            All other products or services mentioned in this
  207.                            manual, including: IBM PC, IBM PC AT, 80286,
  208.                            80386, 80486, VGA, 8514/A, Paradise, Everex,
  209.                            Trident, Video 7, Tseng Labs, Western Digital,
  210.                            MS-DOS, PC-DOS, SPARC, Sun, SPARCstation,
  211.                            SPARCserver, SunOS, Targa, PostScript, EPS,
  212.                            Encapsulated PostScript, GIF, ILBM, IFF,
  213.                            Macintosh, Silicon Graphics, SGI, PCX, TIFF,
  214.                            Windows, Windows BitMaP, EGA, PCL, HP, AI, PS/2,
  215.                            HAM, PC Paintbrush, MacBinary, PHIPS, NeXT, C-
  216.                            Cube, Storm Technology, Radius, ColorSqueeze,
  217.                            VFCtool, Amiga, CompuServe, LaserJet, Melior,
  218.                            and Gill Sans are trademarks, registered
  219.                            trademarks, service marks, or registered service
  220.                            marks of their respective companies or
  221.                            organizations.
  222.  
  223.  
  224.  
  225.  
  226.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.      iv
  227.  
  228.  
  229.  
  230.  
  231.  
  232.                                                                           0
  233.  
  234.  
  235.  
  236.           Introduction to Image Alchemy
  237.           -----------------------------------------------------------------
  238.           -----------------------------------------------------------------
  239.  
  240.  
  241.           What is Image    Image Alchemy is a software utility that
  242.           Alchemy?         manipulates computer image files.
  243.  
  244.                            The main thing that Image Alchemy does is to
  245.                            convert between various graphics file formats.
  246.                            Image Alchemy can translate between a large
  247.                            variety of file formats including industry
  248.                            standards such as GIF and TIFF and vendor
  249.                            specific file formats such as Sun Raster and
  250.                            Scodl.  Currently Alchemy supports over 30
  251.                            different formats, and new formats are always
  252.                            being added; in fact, our goal is to have Image
  253.                            Alchemy be able to read and write every graphic
  254.                            file in the world.
  255.  
  256.                            Image Alchemy can also make changes in an image.
  257.                            For example, Image Alchemy can re-size an image,
  258.                            change the number of colours in an image, change
  259.                            an image from colour to black and white, and
  260.                            change the colour space an image uses.
  261.  
  262.                            Finally, Image Alchemy performs JPEG
  263.                            compression.  This is a new standard for image
  264.                            compression that can achieve much higher
  265.                            compression ratios than conventional compression
  266.                            techniques.  It achieves this high compression
  267.                            ratio by not entirely preserving the original
  268.                            image (this is referred to as "lossy"
  269.                            compression).  For further information see
  270.                            Appendix C, What is JPEG Compression.
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     0-1
  286.  
  287.  
  288.  
  289.           About this       This manual is divided into 8 chapters, 11
  290.           manual           appendices, a glossary, and references.
  291.  
  292.  
  293.                 Chapter 0  Introduction and Conventions
  294.  
  295.                 Chapter 1  Installation Instructions
  296.  
  297.                 Chapter 2  Introduction to Alchemy
  298.  
  299.                 Chapter 3  Output Options
  300.  
  301.                 Chapter 4  General Options
  302.  
  303.                 Chapter 5  Colour and Palette Options
  304.  
  305.                 Chapter 6  Scaling Options
  306.  
  307.                 Chapter 7  Viewing Options
  308.  
  309.                Appendix A  Answers to Frequently Asked Questions
  310.  
  311.                Appendix B  Colour and Dithering
  312.  
  313.                Appendix C  JPEG Description
  314.  
  315.                Appendix D  Customer Support
  316.  
  317.                Appendix E  Binary Information Files (BIF)
  318.  
  319.                Appendix F  HSI Raw Files
  320.  
  321.                Appendix G  Undercolour Removal Files
  322.  
  323.                Appendix H  PAL Files
  324.  
  325.                Appendix I  Version History
  326.  
  327.                Appendix J  Acknowledgements
  328.  
  329.                Appendix K  Other Useful Software
  330.  
  331.                  Glossary
  332.  
  333.                References
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     0-2
  344.  
  345.  
  346.  
  347.           Pathnames        Because the MS-DOS and UNIX operating systems
  348.                            use different conventions for path names users
  349.                            of UNIX will have to substitute forward slashes,
  350.                            "/", for the back slashes, "\", found in the
  351.                            examples in this manual.
  352.  
  353.  
  354.  
  355.           Unintentional    UNIX users should also be aware that the UNIX
  356.           wildcard         shell they are using may be performing wildcard
  357.           expansion        expansion on certain characters (generally "*"
  358.                            and "?").  Since these are options which Alchemy
  359.                            uses they need to be escaped to prevent the
  360.                            wildcard substitution.  This is done by using a
  361.                            back slash, "\", before the character (so -?
  362.                            becomes -\?).
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     0-3
  402.  
  403.  
  404.  
  405.  
  406.  
  407.                                                                           1
  408.  
  409.  
  410.  
  411.           Installing Image Alchemy
  412.           -----------------------------------------------------------------
  413.           -----------------------------------------------------------------
  414.  
  415.  
  416.           Overview         Installation of Image Alchemy is simple; it
  417.                            involves copying the Alchemy program off of the
  418.                            floppy disk or tape onto your hard drive or
  419.                            network.
  420.  
  421.                            You need to be familiar with the copy command if
  422.                            doing a DOS installation and the tar command if
  423.                            doing a UNIX installation.  If you are not
  424.                            familiar with these commands you may wish to
  425.                            read the manuals which came with your computer
  426.                            or ask someone to assist you.
  427.  
  428.                            The installation instructions are divided into
  429.                            different sections for IBM PC, Sun-4 (Sparc),
  430.                            and Sun-3.  Please refer to the section which
  431.                            corresponds to your hardware.
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     1-1
  461.  
  462.  
  463.  
  464.           IBM PC
  465.           -----------------------------------------------------------------
  466.           -----------------------------------------------------------------
  467.  
  468.  
  469.           Required         At a minimum you must have the following
  470.           equipment        hardware and software to run Image Alchemy.
  471.  
  472.  
  473.  
  474.                  Computer  An MS-DOS computer equipped with an 80286,
  475.                            80386, or 80486.
  476.  
  477.                            Many of the conversions that Alchemy does are
  478.                            cpu intensive, so a faster computer is
  479.                            definitely an advantage.
  480.  
  481.  
  482.  
  483.                    Memory  At least 380k of free memory.
  484.  
  485.                            Image Alchemy will run much faster if you have
  486.                            more than 420k of memory available.  Some
  487.                            conversions and some images require even more
  488.                            memory (Alchemy will attempt to use all
  489.                            available system memory, so if you get out of
  490.                            memory errors or warnings try removing as many
  491.                            resident programs as you can (also, installing
  492.                            MS-DOS 5.0 will free up more memory)).
  493.  
  494.                            Alchemy does not currently make use of expanded
  495.                            or extended memory.
  496.  
  497.  
  498.  
  499.                Hard drive  A hard drive with at least as much free space as
  500.                            four times the size of the image being converted
  501.                            (i.e. a 640x480 image will require approximately
  502.                            1.2 megabytes of free space).
  503.  
  504.  
  505.  
  506.                   Display  A supported SVGA or 8514/A board, if you wish to
  507.                            view images.
  508.  
  509.                            Supported SVGA boards include those with the
  510.                            Paradise, Everex, Trident, Video 7, and the
  511.                            Tseng Labs chipsets.  Supported 8514/A boards
  512.                            include IBM and those with the Western Digital
  513.                            chipset.
  514.  
  515.  
  516.  
  517.  
  518.  
  519.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     1-2
  520.  
  521.  
  522.  
  523.                 Operating  MS-DOS or PC-DOS 3.x or greater (because of the
  524.                    system  additional free memory available use of MS-DOS
  525.                            5.0 is highly recommended).
  526.  
  527.  
  528.  
  529.           Optional         The following hardware and software is optional
  530.           equipment        to run Image Alchemy.
  531.  
  532.  
  533.  
  534.            VESA VGA board  To get full use out of viewing images on a SVGA
  535.                            board a VESA driver is needed.  Without a VESA
  536.                            driver Alchemy is limited to displaying images
  537.                            in 320x200x256, 360x480x256, and 640x400x256
  538.                            mode;  with a VESA driver the resolution is
  539.                            limited only by your SVGA board and monitor.
  540.                            Resolutions up to 1280x1024x256 are possible.
  541.  
  542.                            The VESA driver is supplied by the manufacturer
  543.                            of your SVGA board.  It may already be included
  544.                            in the BIOS on your SVGA board, or it may have
  545.                            been shipped on a floppy disk with your SVGA
  546.                            board.  Consult the documentation that came with
  547.                            the SVGA board.  If there is no mention of a
  548.                            VESA driver in the documentation contact your
  549.                            dealer or the manufacturer of your SVGA board;
  550.                            VESA drivers are currently available for VGA
  551.                            boards using chipsets from Cirrus Logic, ATI
  552.                            Technologies, Chips and Technologies, Everex
  553.                            Systems, Genoa Systems, Paradise Logic, Sigma
  554.                            Designs, STB Systems, Tecmar, Headland
  555.                            Technology (Video 7), Orchid Technology, Appian
  556.                            Technology, Trident Microsystems, and Oak
  557.                            Technology.
  558.  
  559.                            Refer to your SVGA documentation on how to
  560.                            install the VESA driver.
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     1-3
  578.  
  579.  
  580.  
  581.                Disk cache  You can greatly increase the speed of many of
  582.                            Image Alchemy's conversions by installing a disk
  583.                            cache that postpones writes.  This is because
  584.                            Alchemy uses the hard drive to temporarily store
  585.                            data during many conversions.  A write
  586.                            postponing cache will use extended and/or
  587.                            expanded memory to make this more efficient.
  588.  
  589.                            An example of a write postponing cache, and the
  590.                            one we use at Handmade Software, is the Norton
  591.                            Utilities 6.01 supplied ncache.exe (the cache
  592.                            supplied with MS-DOS 5.0, smartdrv.sys, is NOT a
  593.                            write postponing cache, and while it will help
  594.                            somewhat, it is not nearly as effective).
  595.  
  596.                            Refer to the documentation that came with your
  597.                            cache on how to install it.
  598.  
  599.  
  600.  
  601.                      Math  A math coprocessor will not affect the speed of
  602.               coprocessor  most operations; the only operations that use
  603.                            much floating point math are scaling types c and
  604.                            d.
  605.  
  606.  
  607.  
  608.           Packing list     The enclosed diskette contains the following
  609.                            files:
  610.  
  611.                            ALCHEMY.EXE  The Alchemy program.
  612.  
  613.                            READ.ME      A text document describing any last
  614.                                         minute revisions.
  615.  
  616.                            SAMPLES      A directory containing sample data
  617.                                         files and images.  See the READ.ME
  618.                                         file in this directory for further
  619.                                         information.
  620.  
  621.           Installation     Using the MS-DOS copy command copy the program
  622.           instructions     ALCHEMY.EXE to a directory in your path.  There
  623.                            are no support or configuration files which need
  624.                            to be copied.  (For more information on the copy
  625.                            command or the path command see the DOS user's
  626.                            manual which came with MS-DOS).
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     1-4
  636.  
  637.  
  638.  
  639.           Note to advanced Alchemy uses the environment variable TMP to
  640.           users            determine where to open its temporary files.  If
  641.                            you have a big enough ram drive you will want to
  642.                            specify it using the TMP variable.  Be aware
  643.                            that Alchemy needs up to 4 times as much space
  644.                            on that drive as the size of the image (a 640 by
  645.                            480 image requires up to 1.2 Megabytes).  An
  646.                            example of setting the TMP variable to drive e:
  647.                            would be "set TMP=e:".
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     1-5
  694.  
  695.  
  696.  
  697.           Sun-4
  698.           -----------------------------------------------------------------
  699.           -----------------------------------------------------------------
  700.  
  701.  
  702.           Required         At a minimum you must have the following
  703.           equipment        hardware and software to run Image Alchemy.
  704.  
  705.  
  706.  
  707.                  Computer  A SPARC equipped Sun (either a Sun-4,
  708.                            SPARCstation, or SPARCserver).
  709.  
  710.  
  711.  
  712.                Disk space  Alchemy uses disk space while converting images.
  713.                            You should have at least 4 times as much disk
  714.                            space available as the image you are converting
  715.                            (i.e.  a 640x480 image will require
  716.                            approximately 1.2 megabytes of disk space).
  717.  
  718.  
  719.  
  720.                 Operating  SunOS 4.0.3 or greater.
  721.                    system
  722.  
  723.  
  724.           Packing list     The enclosed diskette or tape is in tar format
  725.                            and contains the following files:
  726.  
  727.                            alchemy      The Alchemy program.
  728.  
  729.                            read.me      A text document describing any last
  730.                                         minute revisions.
  731.  
  732.                            samples      A directory containing sample data
  733.                                         files and images.  See the read.me
  734.                                         file in this directory for further
  735.                                         information.
  736.  
  737.  
  738.  
  739.           Installation     Use the Sun supplied program tar to copy the
  740.           instructions     files from the distribution disk or tape to the
  741.                            current directory.
  742.  
  743.                            To install the software from diskette use:
  744.  
  745.                                 tar xvf /dev/fd0
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     1-6
  753.  
  754.  
  755.  
  756.                            For tape installation replace /dev/fd0 with the
  757.                            name of the tape device.  The name of the tape
  758.                            device varies between different models and
  759.                            configurations of Sun systems; ask your system
  760.                            administrator if you don't know the name of your
  761.                            tape device.
  762.  
  763.           Note to advanced Alchemy uses the environment variable TMPDIR to
  764.           users            determine where to put its temporary files.
  765.                            This is usually set to /usr/tmp or /tmp, but if
  766.                            you are converting very large images there may
  767.                            not be enough space available in the partition
  768.                            those directories are on.  In that case you may
  769.                            want to set the environment variable TMPDIR to a
  770.                            different partition.  For example, to set the
  771.                            temporary file directory to the directory
  772.                            /home/images use "setenv TMPDIR /home/images".
  773.                            Contact your system administrator if you have
  774.                            problems with Alchemy running out of disk space
  775.                            while converting images.
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     1-7
  811.  
  812.  
  813.  
  814.           Sun-3
  815.           -----------------------------------------------------------------
  816.           -----------------------------------------------------------------
  817.  
  818.  
  819.           Required         At a minimum you must have the following
  820.           equipment        hardware and software to run Image Alchemy.
  821.  
  822.  
  823.  
  824.                  Computer  A 68020 or 68030 equipped Sun (generally called
  825.                            a Sun-3).
  826.  
  827.  
  828.  
  829.                Disk space  Alchemy uses disk space while converting images.
  830.                            You should have at least 4 times as much disk
  831.                            space available as the image you are converting
  832.                            (i.e.  a 640x480 image will require
  833.                            approximately 1.2 megabytes of disk space).
  834.  
  835.  
  836.  
  837.                 Operating  SunOS 4.0.3 or greater.
  838.                    system
  839.  
  840.  
  841.           Packing list     The enclosed diskette or tape is in tar format
  842.                            and contains the following files:
  843.  
  844.                            alchemy      The Alchemy program.
  845.  
  846.                            read.me      A text document describing any last
  847.                                         minute revisions.
  848.  
  849.                            samples      A directory containing sample data
  850.                                         files and images.  See the read.me
  851.                                         file in this directory for further
  852.                                         information.
  853.  
  854.  
  855.  
  856.           Installation     Use the Sun supplied program tar to copy the
  857.           instructions     files from the distribution disk or tape to the
  858.                            current directory.
  859.  
  860.                            To install the software from diskette use:
  861.  
  862.                                 tar xvf /dev/fd0
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     1-8
  870.  
  871.  
  872.  
  873.                            For tape installation replace /dev/fd0 with the
  874.                            name of the tape device.  The name of the tape
  875.                            device varies between different models and
  876.                            configurations of Sun systems; ask your system
  877.                            administrator if you don't know the name of your
  878.                            tape device.
  879.  
  880.           Note to advanced Alchemy uses the environment variable TMPDIR to
  881.           users            determine where to put its temporary files.
  882.                            This is usually set to /usr/tmp or /tmp, but if
  883.                            you are converting very large images there may
  884.                            not be enough space available in the partition
  885.                            those directories are on.  In that case you may
  886.                            want to set the environment variable TMPDIR to a
  887.                            different partition.  For example, to set the
  888.                            temporary file directory to the directory
  889.                            /home/images use "setenv TMPDIR /home/images".
  890.                            Contact your system administrator if you have
  891.                            problems with Alchemy running out of disk space
  892.                            while converting images.
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     1-9
  928.  
  929.  
  930.  
  931.  
  932.  
  933.                                                                           2
  934.  
  935.  
  936.  
  937.           Introduction
  938.           -----------------------------------------------------------------
  939.           -----------------------------------------------------------------
  940.  
  941.  
  942.           Basic            Image Alchemy is a command line driven program.
  943.           instructions     This is different from a menu driven or mouse
  944.                            driven program in that you instruct Alchemy what
  945.                            to do only when you execute it from the command
  946.                            line.  Once the program is running there are no
  947.                            further choices or user interaction.
  948.  
  949.                            The basic Image Alchemy usage instructions are:
  950.  
  951.                            alchemy -option [-option ...] inputFileName
  952.                            [outputFileName] [outputPathName]
  953.  
  954.                            This simply means that you type the name of the
  955.                            program, Alchemy, followed by at least one
  956.                            option, followed by the input file name.  You
  957.                            may optionally specify an output file name or an
  958.                            output path name.
  959.  
  960.                   Options  Options are the commands that you give Alchemy
  961.                            so that it knows what you want it to do.  So
  962.                            that Alchemy can distinguish between options and
  963.                            file names, options are preceded by a dash ("-
  964.                            ").
  965.  
  966.                            The only option that is required is the output
  967.                            file format (or the viewing option, for MS-DOS
  968.                            users).  Image Alchemy will make reasonable
  969.                            decisions for all of the other options.
  970.  
  971.                            Some options take parameters.  The parameters
  972.                            may immediately follow the option or be
  973.                            separated by a space.  For example, either -c128
  974.                            or -c 128 is acceptable.
  975.  
  976.                            The options are documented in Chapters 3 through
  977.                            7.
  978.  
  979.                            Note that options can appear anywhere in the
  980.                            command line and generally they can be in any
  981.                            order (certain options take parameters; in those
  982.                            cases the parameters must follow the option).
  983.                            The case of the options is significant.
  984.  
  985.  
  986.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     2-1
  987.  
  988.  
  989.  
  990.             InputFileName  The inputFileName is any valid file name.  This
  991.                            is the name of an existing image file that you
  992.                            are converting from or viewing.  The
  993.                            inputFileName is required.  It may include an
  994.                            optional drive and/or path.
  995.  
  996.            OutputFileName  The outputFileName is the name of the file you
  997.                            are converting the image to.  The outputFileName
  998.                            is optional;  if it is not specified Image
  999.                            Alchemy generates one by substituting an
  1000.                            appropriate extension to the input file name.
  1001.                            If you specify an outputFileName and it does not
  1002.                            include an extension one will be added.  The
  1003.                            outputFileName may include an optional drive
  1004.                            and/or path.  If you do not supply a path the
  1005.                            current directory will be used as the
  1006.                            destination directory.
  1007.  
  1008.            OutputPathName  The outputPathName is the location where you
  1009.                            want to put the output that Alchemy will create.
  1010.                            The outputPathName is optional;  if it is not
  1011.                            specified Alchemy places the output in the
  1012.                            current directory or in the directory specified
  1013.                            as part of the outputFileName.
  1014.  
  1015.  
  1016.  
  1017.           Limitations on   Since Alchemy lets you optionally enter a space
  1018.           filenames        between an option and its parameter it is
  1019.                            possible to confuse Alchemy if one of the
  1020.                            filenames starts with a number.  In particular,
  1021.                            if you use an option which has an optional
  1022.                            parameter, you do not use a parameter, and you
  1023.                            follow that option immediately with a filename
  1024.                            which starts with a number, Alchemy doesn't
  1025.                            realize that the filename is not the parameter.
  1026.                            While it sounds unlikely that this would ever be
  1027.                            a problem it actually happens quite often.
  1028.  
  1029.                            For example, if you wanted to convert the file
  1030.                            12.gif to a Targa file with the name output.tga
  1031.                            you would have to be careful of the order you
  1032.                            specified things.
  1033.  
  1034.                            If you say
  1035.  
  1036.                                 alchemy -a 12.gif output.tga
  1037.  
  1038.                            Alchemy would misinterpret that as
  1039.  
  1040.                                 alchemy -a12 .gif output.tga
  1041.  
  1042.  
  1043.  
  1044.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     2-2
  1045.  
  1046.  
  1047.  
  1048.                            and would generate an error.
  1049.  
  1050.                            The easiest way around this problem is to always
  1051.                            put the filenames first
  1052.  
  1053.                                 alchemy 12.gif output.tga -a
  1054.  
  1055.                            or don't use filenames which begin with a
  1056.                            number.
  1057.  
  1058.           Output path      The output path name is the location where
  1059.                            Alchemy will place its output.
  1060.  
  1061.                            The outputPathName can be specified as part of
  1062.                            the outputFileName if you are specifying an
  1063.                            outputFileName.
  1064.  
  1065.                            For example
  1066.  
  1067.                                 alchemy sample.jpg -g test.gif \images
  1068.  
  1069.                            is the same as
  1070.  
  1071.                                 alchemy sample.jpg -g \images\test.gif
  1072.  
  1073.                            However,
  1074.  
  1075.                                 alchemy sample.jpg -g
  1076.  
  1077.                            is not the same as
  1078.  
  1079.                                 alchemy sample.jpg -g \images
  1080.  
  1081.                            When using the wildcard option, Alchemy allows
  1082.                            wildcards and multiple file names.  In this case
  1083.                            the use of an outputFileName is not allowed, but
  1084.                            the use of the outputPathName is.  See the
  1085.                            wildcard option below for more information.
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     2-3
  1103.  
  1104.  
  1105.  
  1106.           Using multiple   Sometimes you may know what you want to
  1107.           runs of Alchemy  accomplish but not how to specify the correct
  1108.                            combination of options.  For example, you may
  1109.                            wish to re-size a true colour Targa file that
  1110.                            you have scanned and convert it to a 16 colour
  1111.                            GIF file.  Let's say that the input file name is
  1112.                            file.tga and you want to generate a file with
  1113.                            the name file.gif. In this case you could type:
  1114.  
  1115.                                 alchemy file.tga -Xb640 -Yb480 -c16 -g
  1116.  
  1117.                            However, there would be no penalty in quality
  1118.                            (and little in speed) if you did things in two
  1119.                            steps:
  1120.  
  1121.                                 alchemy file.tga -Xb640 -Yb480 -r temp.raw
  1122.  
  1123.                                 alchemy temp.raw -c16 -g file.gif
  1124.  
  1125.                            In this case you are telling Alchemy to use a
  1126.                            temporary raw file called temp.raw.  It turns
  1127.                            out that Alchemy would have done that
  1128.                            automatically in the first case.  Of course you
  1129.                            will have to manually delete the file temp.raw
  1130.                            when the conversion is finished.
  1131.  
  1132.                            The order of steps is important in many cases.
  1133.                            For example, reversing the order of the two
  1134.                            operations in the previous example:
  1135.  
  1136.                                 alchemy file.tga -c16 -g temp.raw
  1137.  
  1138.                                 alchemy temp.raw -Xb640 -Yb480 -g file
  1139.  
  1140.                            would give different results.  This is because
  1141.                            the scaling operation has to temporarily convert
  1142.                            the image to true colour, but the GIF file you
  1143.                            are generating has to be paletted, so the second
  1144.                            operation would re-dither the image.
  1145.  
  1146.                            Sometimes you will have to perform operations
  1147.                            using multiple steps because there are some
  1148.                            combinations of options that Alchemy explicitly
  1149.                            does not allow.  These combinations of options
  1150.                            are not allowed because the results would not be
  1151.                            what you expect.
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     2-4
  1161.  
  1162.  
  1163.  
  1164.                            For example, using the spiff option, -S, in
  1165.                            combination with the false colour option, -F,
  1166.                            would spiff the image first and then false
  1167.                            colour it, which would give the same results as
  1168.                            just using the false colour option.  Since that
  1169.                            isn't something that you would ever want to do,
  1170.                            Alchemy will complain if you specify both of
  1171.                            those options at the same time.
  1172.  
  1173.                            In this case you could false colour the image
  1174.                            first, generating a temporary image, and then
  1175.                            spiff that image.
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     2-5
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.                                                                           3
  1225.  
  1226.  
  1227.  
  1228.           Output Options
  1229.           -----------------------------------------------------------------
  1230.           -----------------------------------------------------------------
  1231.  
  1232.  
  1233.           Introduction     The one option which is always required when
  1234.                            running Image Alchemy is the output image file
  1235.                            type.  Even if you are just re-sizing an image,
  1236.                            or changing the number of colours in an image,
  1237.                            Alchemy needs to know what type of image you are
  1238.                            creating.
  1239.  
  1240.                            The file types that Image Alchemy supports are
  1241.                            listed below.  In addition to the syntax
  1242.                            required to generate the file, any known
  1243.                            restrictions or limitations are listed.  If you
  1244.                            have trouble reading an image in one of the file
  1245.                            formats we claim to support please contact us
  1246.                            (see Appendix D, Customer Support).
  1247.  
  1248.                            The common output options consist of a single
  1249.                            letter.  The option, like all Alchemy options,
  1250.                            is preceded by a dash, "-".  The less common
  1251.                            output options consist of a letter preceded by
  1252.                            two dashes, "--".
  1253.  
  1254.                Variations  Some of the output formats have several
  1255.                            variations; in those cases you specify which
  1256.                            variation you want with an optional letter
  1257.                            and/or number after the output option.
  1258.  
  1259.                   Example  The option to generate a Windows Bitmap file is
  1260.                            -w.  There are two types of Bitmap files:
  1261.                            uncompressed and Run-Length-Encoded (RLE).  To
  1262.                            write out an uncompressed Bitmap file use -w0;
  1263.                            to write out a RLE Bitmap file use -w1 (the
  1264.                            default Bitmap file is uncompressed, so a -w
  1265.                            without any parameter following it would also
  1266.                            generate an uncompressed Bitmap file).  Note
  1267.                            that Alchemy allows spaces between the option
  1268.                            and parameter, so typing -w 1 would be the same
  1269.                            as -w1.
  1270.  
  1271.                Variations  Be aware that the other options specified on the
  1272.                            command line also affect the type of file that
  1273.                            is generated.
  1274.  
  1275.  
  1276.  
  1277.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     3-1
  1278.  
  1279.  
  1280.  
  1281.                   Example  Within the Windows Bitmap file type there are 1
  1282.                            bit, 4 bit, 8 bit, and 24 bit files.
  1283.  
  1284.                            Alchemy always generates a file using the best
  1285.                            match of the file type and the output image.
  1286.                            So, in the case of Windows Bitmap files, if the
  1287.                            output image is black and white a 1 bit file is
  1288.                            generated.  If the output image is paletted with
  1289.                            16 colours or less a 4 bit file is generated.
  1290.                            If the output image is paletted with more than
  1291.                            16 colours an 8 bit file is generated.  And if
  1292.                            the output image is true colour a 24 bit file is
  1293.                            generated.
  1294.  
  1295.                            You can explicitly force any of these file types
  1296.                            by using other Alchemy options.  For example, if
  1297.                            you wanted a 1 bit Windows Bitmap file you would
  1298.                            specify -c2 -b -w.  To force a 4 bit file use
  1299.                            -c16 -w.  To force an 8 bit file use -c256 -w.
  1300.                            And to force a true colour file use -24 -w.
  1301.  
  1302.  
  1303.           Identifying      Image Alchemy identifies the type of file being
  1304.           image files      read by checking various magic numbers and other
  1305.                            information that varies from format to format.
  1306.                            Unfortunately some formats do not have a magic
  1307.                            number; in those cases Alchemy guesses as to the
  1308.                            image type.  It is possible for Image Alchemy to
  1309.                            incorrectly identify an image; if this happens
  1310.                            please contact us.
  1311.  
  1312.           MacBinary        When reading images Alchemy automatically
  1313.                            recognizes and reads MacBinary files (MacBinary
  1314.                            files are generated when you accidently leave
  1315.                            MacBinary mode on when transferring a file from
  1316.                            a Macintosh).
  1317.  
  1318.           Other            Alchemy will preserve as much information in
  1319.           information      each file as is reasonable; this always includes
  1320.                            the height and width of the image and the number
  1321.                            of colours in the image.  Some file types
  1322.                            include other data, such as the name of the
  1323.                            image, the aspect ratio of the image, the date
  1324.                            the image was created, etc.  Since most of these
  1325.                            items are only supported by a few file formats,
  1326.                            Alchemy discards everything but the height,
  1327.                            width, number of colours, gamma, aspect ratio,
  1328.                            and resolution values.
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     3-2
  1336.  
  1337.  
  1338.  
  1339.           Output Options   The individual output options supported by
  1340.                            Alchemy are described in alphabetical order on
  1341.                            the following pages.  The descriptions follow
  1342.                            the template given overleaf.
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     3-3
  1394.  
  1395.  
  1396.  
  1397.           Name of format                                            -option
  1398.  
  1399.  
  1400.                            Overview of file format.
  1401.  
  1402.           Syntax           Description of syntax.
  1403.  
  1404.           Parameter        Description of the parameters.
  1405.  
  1406.           Extensions       The extensions commonly used for this image
  1407.                            format.  When multiple extensions are listed
  1408.                            Alchemy writes files using the first one, but
  1409.                            will check for files using all extensions (in
  1410.                            the order listed).  Four letter extensions are
  1411.                            skipped on MS-DOS systems.
  1412.  
  1413.           Creator          The company or individual who created this image
  1414.                            format.  Please contact them for more
  1415.                            information on the format.
  1416.  
  1417.           Used by          Programs or types of software that use this
  1418.                            image format.
  1419.  
  1420.           Variations       A list of the supported variations.
  1421.  
  1422.           Limitations      Any known limitations that Alchemy has when
  1423.                            reading or writing this image format.
  1424.  
  1425.           Comments         Miscellaneous things you should be aware of.
  1426.  
  1427.           Related options  Other Alchemy options that affect the reading or
  1428.                            writing of this image format.  Note that -8, -24
  1429.                            (and, for some formats, -15, -16, and -32), -c,
  1430.                            and -b options have an effect for most image
  1431.                            formats and are not listed explicitly.
  1432.  
  1433.           Example          Example conversions involving this image format.
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     3-4
  1452.  
  1453.  
  1454.  
  1455.           ADEX                                                          --A
  1456.  
  1457.  
  1458.                            ADEX files are used by the ADEX Corporation
  1459.                            ChromaGraph series of graphics cards.
  1460.  
  1461.           Syntax           --A compressionType
  1462.  
  1463.           Parameter        compressionType:
  1464.                                 0:None
  1465.                                 1:Run Length Coded
  1466.                            The default is None.
  1467.  
  1468.           Extensions       .img
  1469.                            .rle
  1470.  
  1471.           Creator          ADEX Corporation
  1472.  
  1473.           Used by          ADEX ChromaGraph cards.
  1474.  
  1475.           Variations       4 bit and 8 bit images.
  1476.  
  1477.           Comments         Some ADEX files don't contain a palette; in
  1478.                            those cases there's usually a second ADEX file
  1479.                            which contains the palette to be used.  To read
  1480.                            those images that don't have palettes, use the -
  1481.                            F false colour option to read the palette from a
  1482.                            separate file.
  1483.  
  1484.           Related options  -F   False colour
  1485.  
  1486.           Example          Convert the file test.gif to an uncompressed
  1487.                            ADEX file called test.img:
  1488.  
  1489.                                 alchemy --A test.gif
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     3-5
  1510.  
  1511.  
  1512.  
  1513.           Autologic                                                     --a
  1514.  
  1515.  
  1516.                            Autologic files are black and white or gray-
  1517.                            scale files for use with Autologic typesetting
  1518.                            equipment.
  1519.  
  1520.           Syntax           --a
  1521.  
  1522.           Extensions       .gm
  1523.                            .gm2
  1524.                            .gm4
  1525.  
  1526.           Creator          Autologic, Incorporated
  1527.  
  1528.           Used by          Autologic typesetting equipment.
  1529.  
  1530.           Variations       Graphics modes 2 (black/white) and 4 (gray-
  1531.                            scale) are supported.
  1532.  
  1533.           Limitations      Only the High Speed Interface inline format is
  1534.                            supported.
  1535.  
  1536.                            When reading, images must be preceded by a
  1537.                            Graphics Parameter Block.
  1538.  
  1539.           Examples         Convert the file input.tif to a GM4 file called
  1540.                            output.gm4:
  1541.  
  1542.                                 alchemy --a -b input.tif output.gm4
  1543.  
  1544.                            Convert the file input.tif to a GM2 file called
  1545.                            output.gm2:
  1546.  
  1547.                                 alchemy --a -b -c2 input.tif output.gm2
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     3-6
  1568.  
  1569.  
  1570.  
  1571.           Binary Information Files (BIF)                                 -B
  1572.  
  1573.  
  1574.                            There are quite a few programs which produce
  1575.                            image files which contain just pixel data.
  1576.                            These image files do not have a header and hence
  1577.                            do not include enough information to allow
  1578.                            Alchemy to read them.
  1579.  
  1580.                            BIF files are a method which can be used to
  1581.                            allow Alchemy to read these images.  BIF files
  1582.                            can also be created to allow images to be read
  1583.                            by software which expects images to be just
  1584.                            pixels.  Since required information, such as the
  1585.                            height and width of the image, are not present
  1586.                            in these files you must supply it.
  1587.  
  1588.           Syntax           -B
  1589.  
  1590.           Extensions       .bif For ASCII file describing image.
  1591.                            .raw For actual image data.
  1592.  
  1593.           Creator          Handmade Software, Inc.
  1594.  
  1595.           Used by          Image Alchemy
  1596.                            Various image processing software
  1597.  
  1598.           Variations       24 bit true colour, 8 bit gray-scale, and 1 bit
  1599.                            black and white.
  1600.  
  1601.           Limitations      Paletted files can not be read in (a work around
  1602.                            is to generate a .PAL file and then false colour
  1603.                            the gray-scale image using the -F option).
  1604.  
  1605.           Comments         BIF files are used to read and write files which
  1606.                            consist entirely of image data.  You have to
  1607.                            generate a text file which describes the format
  1608.                            of the data you are trying to read in.  This
  1609.                            file is called a BIF file.  The format of BIF
  1610.                            files is documented in Appendix E, Binary
  1611.                            Information Files.  You then instruct Alchemy to
  1612.                            read the image data by giving it the name of the
  1613.                            .BIF file.
  1614.  
  1615.           Related options  -F   False colour
  1616.  
  1617.           Examples         Convert the file data to a GIF file:
  1618.  
  1619.                                 alchemy data.bif -g
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     3-7
  1626.  
  1627.  
  1628.  
  1629.           Encapsulated PostScript (EPS)                                  -e
  1630.  
  1631.  
  1632.                            EPS files are a subset of PostScript; they may
  1633.                            be included by other PostScript files without
  1634.                            requiring that the importing software be able to
  1635.                            interpret the file.
  1636.  
  1637.           Syntax           -e previewType
  1638.  
  1639.           Parameter        previewType:
  1640.                                 0:None
  1641.                                 1:Device independent
  1642.                                 2:TIFF
  1643.                            The default is device independent.
  1644.  
  1645.           Extensions       .epsi
  1646.                            .epi
  1647.  
  1648.           Creator          Adobe Systems, Inc.
  1649.  
  1650.           Used by          PostScript printers
  1651.  
  1652.           Variations       Gray-scale, RGB, and indexed images.
  1653.  
  1654.           Limitations      Alchemy can only write, not read, EPS images.
  1655.  
  1656.           Comments         If the output is gray-scale, it will work with
  1657.                            any PostScript device.  If it's true colour,
  1658.                            then the CMYK extensions or a level 2 device is
  1659.                            required.  For paletted files, a level 2 device
  1660.                            is always required.
  1661.  
  1662.           Examples         Convert the file input.gif to a colour EPS file
  1663.                            called input.eps which will not require level 2
  1664.                            PostScript (but will require CMYK extensions),
  1665.                            with no preview:
  1666.  
  1667.                                 alchemy -e0 -24 input.gif
  1668.  
  1669.  
  1670.  
  1671.                            Convert the file input.gif to a gray-scale EPS
  1672.                            file called gray.eps, with a device independent
  1673.                            preview:
  1674.  
  1675.                                 alchemy -e -b input.gif gray.eps
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     3-8
  1684.  
  1685.  
  1686.  
  1687.           Erdas LAN/GIS                                                 --e
  1688.  
  1689.  
  1690.                            Erdas files are used by Erdas image processing
  1691.                            software.
  1692.  
  1693.           Syntax           --e
  1694.  
  1695.           Extensions       .lan
  1696.                            .gis
  1697.  
  1698.           Creator          Erdas Inc.
  1699.  
  1700.           Used by          Erdas remote sensing software.
  1701.  
  1702.           Variations       Reads and writes 1 and 3 band files.
  1703.  
  1704.                            Reads 4, 8, and 16 bit files.  Writes 8 bit
  1705.                            files.
  1706.  
  1707.           Limitations      When writing Erdas files Alchemy does not change
  1708.                            the extension depending on the number of bands
  1709.                            in the image; according to the specification
  1710.                            gray-scale files should have the extension .gis
  1711.                            and true colour files should have the extension
  1712.                            .lan.  Alchemy always uses .lan.
  1713.  
  1714.           Comments         1 band files are read in as gray-scale images.
  1715.  
  1716.                            3 band files are read in as true colour images.
  1717.                            The colour mapping between RGB and bands 1, 2,
  1718.                            and 3 is Red=Band 1, Green=Band 2, and Blue=Band
  1719.                            3.
  1720.  
  1721.           Examples         Convert the GIS file texas.gis to a Sun raster
  1722.                            file:
  1723.  
  1724.                                 alchemy texas.gis -s
  1725.  
  1726.                            Convert the file satellite.image to a GIS file.
  1727.  
  1728.                                 alchemy -b --e satellite.image
  1729.                                 satellite.gis
  1730.  
  1731.                            Convert the file satellite.image to a LAN file.
  1732.  
  1733.                                 alchemy --e satellite.image satellite.lan
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739.  
  1740.  
  1741.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     3-9
  1742.  
  1743.  
  1744.  
  1745.           Freedom of the Press                                          --f
  1746.  
  1747.  
  1748.                            Freedom of the Press is a PostScript interpreter
  1749.                            from Custom Applications that converts
  1750.                            PostScript files to raster files.  The Freedom
  1751.                            of the Press format is one of the file types it
  1752.                            can create.
  1753.  
  1754.           Syntax           --f
  1755.  
  1756.           Extension        .fop
  1757.  
  1758.           Creator          Custom Applications
  1759.  
  1760.           Limitations      Output only.
  1761.  
  1762.                            Only CMYK 1 bit per component per pixel
  1763.                            supported.
  1764.  
  1765.           Comments         Freedom of the Press images are actually two
  1766.                            files, a data file and an info file.  You
  1767.                            specify the name of the data file and Alchemy
  1768.                            automatically generates the name of the info
  1769.                            file.  The output file is normally output.001,
  1770.                            output.002, etc.  Alchemy will strip the first
  1771.                            part of the name and replace it with 'info', so
  1772.                            if you specified an output filename of
  1773.                            output.005 there will be another file created
  1774.                            called info.005.  If you don't specify an
  1775.                            extension, Alchemy will use .fop, so you'll get
  1776.                            two files named filename.fop and info.fop.
  1777.                            Alchemy will overwrite info files without
  1778.                            warning.
  1779.  
  1780.           Related options  -C   Undercolour removal
  1781.  
  1782.           Example          Convert the file image.tga to a Freedom of the
  1783.                            Press image called output.003 and info.003,
  1784.                            controlling the undercolour removal process
  1785.                            using sample.ucr, scaling the image to 2500
  1786.                            pixels across (and scaling proportionately
  1787.                            vertically) using nearest neighbor scaling, and
  1788.                            conserving memory:
  1789.  
  1790.                                 alchemy --f -Csample.ucr -X2500 -+ -$
  1791.                                 image.tga output.003
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-10
  1800.  
  1801.  
  1802.  
  1803.           GEM VDI Image File                                            --g
  1804.  
  1805.  
  1806.                            VDI files are black and white files that were
  1807.                            developed by Digital Research to use with GEM.
  1808.  
  1809.           Syntax           --g
  1810.  
  1811.           Extension        .img
  1812.  
  1813.           Creator          Digital Research Inc.
  1814.  
  1815.           Used by          GEM
  1816.  
  1817.           Variations       Reads and writes 1 bit, black and white files.
  1818.  
  1819.           Limitations      The files which are written are not optimally
  1820.                            compressed.
  1821.  
  1822.           Comments         Since GEM VDI files are always 1 bit, black and
  1823.                            white files, Alchemy assumes the use of the -b,
  1824.                            -c2, and -8 options.
  1825.  
  1826.           Examples         Convert the image scan.pcx to a GEM file:
  1827.  
  1828.                                 alchemy scan.pcx --g
  1829.  
  1830.                            Convert the image bigscan.tga to a 640x480 GEM
  1831.                            VDI file, using nearest neighbor scaling and
  1832.                            type 2 dithering:
  1833.  
  1834.                                 alchemy --g bigscan.tga -X640 -Y480 -d2
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-11
  1858.  
  1859.  
  1860.  
  1861.           GIF                                                            -g
  1862.  
  1863.  
  1864.                            GIF files were originally developed by
  1865.                            CompuServe as a machine independent image file
  1866.                            format.  GIF files are clearly the most popular
  1867.                            way of storing 8 bit, scanned or digitized
  1868.                            images.  In addition the compression ratio
  1869.                            achieved by GIF files is usually better than any
  1870.                            other 8 bit format in common use.  GIF89A files
  1871.                            were introduced in 1990 as a method for
  1872.                            including text and simple animations.
  1873.  
  1874.           Syntax           -g version
  1875.  
  1876.           Parameter        version:
  1877.                                 0:  GIF87A
  1878.                                 1:  GIF89A
  1879.                            The default is GIF87A.
  1880.  
  1881.           Extension        .gif
  1882.  
  1883.           Creator          CompuServe, Incorporated
  1884.  
  1885.           Used by          CompuServe
  1886.                            Everyone
  1887.  
  1888.           Variations       Reads 1 through 8 bit GIF87A and GIF89A
  1889.                            interleaved and non-interleaved files.
  1890.  
  1891.                            Writes 1 through 8 bit GIF87A and GIF89A non-
  1892.                            interleaved files.
  1893.  
  1894.           Limitations      When reading GIF89A files only the first image
  1895.                            in the file is read.  Any text, overlays,
  1896.                            pauses, palette changes, etc. are ignored.
  1897.  
  1898.                            Because GIF files only store the size of the
  1899.                            palette to the nearest power of 2 the exact
  1900.                            palette size is lost when converting to and from
  1901.                            GIF files.  For example, if you convert a 240
  1902.                            colour Sun Raster file to a GIF file and back to
  1903.                            a Sun Raster file the resulting Sun Raster file
  1904.                            will have 256 colours.
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-12
  1916.  
  1917.  
  1918.  
  1919.           Comments         When writing a file you probably want to use the
  1920.                            GIF87A variation, since the GIF89A extensions
  1921.                            aren't necessary to store single images and a
  1922.                            lot of other software still can't read GIF89A
  1923.                            images.  The only advantage to GIF89A is that
  1924.                            the aspect ratio of the image is preserved
  1925.                            (GIF87A does not have a provision for storing
  1926.                            aspect ratio).
  1927.  
  1928.                            The GIF format includes a field for storing the
  1929.                            colour to be used for the background when
  1930.                            viewing files.  Alchemy does not make use of
  1931.                            this value.  Alchemy sets the background colour
  1932.                            to the darkest colour in the palette when
  1933.                            viewing files and organizes the palette such
  1934.                            that the first colour is the darkest colour when
  1935.                            writing GIF files, if the palette is created by
  1936.                            Alchemy (you can override this by using the -z
  1937.                            option).
  1938.  
  1939.           Related options  -z   Palette Selection
  1940.  
  1941.           Examples         Convert the image test.pcx to a GIF87A image.
  1942.  
  1943.                                 alchemy test.pcx -g
  1944.  
  1945.                            Convert the file input.tga to a 16 colour GIF89A
  1946.                            file:
  1947.  
  1948.                                 alchemy input.tga -c16 -g1
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962.  
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-13
  1974.  
  1975.  
  1976.  
  1977.           HP Printer Command Language (PCL)                              -P
  1978.  
  1979.  
  1980.                            HP PCL files are used by HP LaserJets and
  1981.                            compatible printers.
  1982.  
  1983.           Syntax           -P compressionType
  1984.  
  1985.           Parameter        compressionType:
  1986.                                 0:  Uncompressed
  1987.                                 2:  TIFF compressed
  1988.                            The default is uncompressed.
  1989.  
  1990.           Extension        .pcl
  1991.  
  1992.           Creator          Hewlett-Packard Company
  1993.  
  1994.           Used by          HP LaserJet printers
  1995.                            HP compatible laser printers
  1996.  
  1997.           Variations       PCL files are always 1 bit per pixel, black and
  1998.                            white.
  1999.  
  2000.                            Reads and writes uncompressed and TIFF
  2001.                            compressed files.
  2002.  
  2003.           Limitations      In addition to raster images, PCL files can
  2004.                            include text and vector graphics information.
  2005.                            When reading Alchemy only pays attention to
  2006.                            raster images in the file and attempts to skip
  2007.                            everything else.  See Appendix A, Answers to
  2008.                            Frequently Asked Questions, for further
  2009.                            discussion of this.
  2010.  
  2011.                            The only resolutions allowed in PCL files are
  2012.                            75 DPI, 100 DPI, 150 DPI, and 300 DPI; the X and
  2013.                            Y resolution must be the same.  If you specify
  2014.                            any other resolution Alchemy automatically
  2015.                            alters the resolution to the next higher
  2016.                            resolution.  If no resolution is specified the
  2017.                            default is 300 DPI.
  2018.  
  2019.           Comments         Since PCL files are always 1 bit, black and
  2020.                            white files, Alchemy assumes the use of the -b,
  2021.                            -c2, and -8 options.
  2022.  
  2023.                            When converting colour or gray-scale images to
  2024.                            PCL you will probably want to scale the output
  2025.                            so the image will be larger than the input
  2026.                            image.  This will allow the dithering to
  2027.                            preserve more detail in the image.
  2028.  
  2029.  
  2030.  
  2031.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-14
  2032.  
  2033.  
  2034.  
  2035.                            PCL files can be used to generate output which
  2036.                            can be printed on HP LaserJet and compatible
  2037.                            printers.  The easiest method is to simply
  2038.                            generate a .PCL file and then copy it to the
  2039.                            printer by using the copy command (when using
  2040.                            the copy command from MS-DOS you will have to
  2041.                            use a /B to make sure the entire file is copied
  2042.                            to the printer; see the example below for more
  2043.                            information).
  2044.  
  2045.                            All HP laser printers can print uncompressed
  2046.                            files.  The newer models, including the HP
  2047.                            LaserJet III series, can print TIFF compressed
  2048.                            files.  TIFF compressed files are smaller, and
  2049.                            therefore are faster to transmit to the printer.
  2050.  
  2051.           Examples         Convert the image image.gif to a HP PCL file,
  2052.                            using no compression:
  2053.  
  2054.                                 alchemy image.gif -P
  2055.  
  2056.  
  2057.  
  2058.                            Convert the image small.gif to a HP PCL file
  2059.                            called out.pcl with dimensions of 2000 by 2000
  2060.                            at 300 DPI:
  2061.  
  2062.                                 alchemy small.gif -P -X2000 -Y2000 -D 300
  2063.                                 300 out
  2064.  
  2065.                            Print the image generated by the previous
  2066.                            example (for MS-DOS machines only):
  2067.  
  2068.                                 copy /B out.pcl prn:
  2069.  
  2070.                            Convert the image small.gif to a HP PCL file
  2071.                            called out2.pcl with dimensions of 2000 by 2000
  2072.                            at 300 DPI, using TIFF compression:
  2073.  
  2074.                                 alchemy small.gif -P2 -X2000 -Y2000 -D 300
  2075.                                 300 out2
  2076.  
  2077.  
  2078.  
  2079.  
  2080.  
  2081.  
  2082.  
  2083.  
  2084.  
  2085.  
  2086.  
  2087.  
  2088.  
  2089.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-15
  2090.  
  2091.  
  2092.  
  2093.           HP Raster Transfer Language (RTL)                             --r
  2094.  
  2095.  
  2096.                            RTL files are used by HP colour raster printers
  2097.                            and plotters.
  2098.  
  2099.           Syntax           --r type
  2100.  
  2101.           Parameter        type:
  2102.                                 0:PaintJet
  2103.                                 1:HP7600 uncompressed
  2104.                                 2:HP7600 PackBits compression
  2105.                                 3:HP7600 planar uncompressed
  2106.                                 4:HP7600 planar PackBits compression
  2107.                                 5:HP7600 planar Group III compression
  2108.                            The default is HP7600 PackBits compression.
  2109.  
  2110.           Extension        .rtl
  2111.  
  2112.           Creator          Hewlett-Packard Company
  2113.  
  2114.           Used by          HP raster plotters and printers including
  2115.                            PaintJets and HP 7600 Series plotters.
  2116.  
  2117.           Variations       CMYK, 1 bit per component per pixel.
  2118.  
  2119.           Limitations      Output only.
  2120.  
  2121.                            The output file is always colour, even if the
  2122.                            image is black & white.
  2123.  
  2124.           Comments         RTL files can be used to produce output which
  2125.                            can be printed on HP colour printers and raster
  2126.                            plotters.  The file can be printed by sending
  2127.                            the file to the plotter.  There is no additional
  2128.                            setup required for the PaintJet.  HP7600 series
  2129.                            plotters should be in HP-GL/2 mode; best results
  2130.                            will generally be achieved with compensation
  2131.                            off.  To get colour plots from the HP7600 series
  2132.                            the plotter must be in 4 or 5 pass mode.  The
  2133.                            file must be sent to the printer/plotter in
  2134.                            binary mode (for MS-DOS systems, use the /B
  2135.                            option with the copy command).
  2136.  
  2137.                            If the input is black and white, you probably
  2138.                            want to do the conversion without an undercolour
  2139.                            removal file and with dithering off.  See below
  2140.                            for an example.
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.  
  2147.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-16
  2148.  
  2149.  
  2150.  
  2151.                            If the input is gray-scale, you probably do want
  2152.                            to use an undercolour removal file to perform
  2153.                            density correction, but with 100% black removal
  2154.                            (the black removal tables should contain 0
  2155.                            through 255, increasing by one each line) so
  2156.                            that the output won't contain cyan, magenta, or
  2157.                            yellow.  The sample directory on the
  2158.                            distribution diskette has a UCR file called
  2159.                            gray.ucr which has 100% black removal.
  2160.  
  2161.           Related options  -C   Undercolour Removal File
  2162.                            -d   Specify dither type
  2163.  
  2164.           Examples         Convert the black and white image test.wpg to a
  2165.                            RTL file for a PaintJet called test.rtl, not
  2166.                            using a UCR file and with dithering off:
  2167.  
  2168.                                 alchemy --r0 -d0 test.wpg
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.  
  2192.  
  2193.  
  2194.  
  2195.  
  2196.  
  2197.  
  2198.  
  2199.  
  2200.  
  2201.  
  2202.  
  2203.  
  2204.  
  2205.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-17
  2206.  
  2207.  
  2208.  
  2209.                            Convert the file image.tga to a RTL file for a
  2210.                            PaintJet called image.rtl, using the undercolour
  2211.                            removal file sample.ucr:
  2212.  
  2213.                                 alchemy --r0 -Csample.ucr image.tga
  2214.  
  2215.                            Convert the file image.tga to a planar RTL file
  2216.                            called image.rtl using PackBits compression,
  2217.                            controlling the undercolour removal process
  2218.                            using sample.ucr, scaling the image to 3000
  2219.                            pixels across using good quality scaling,
  2220.                            preserving the aspect ratio (by proportionately
  2221.                            scaling the image vertically), and conserving
  2222.                            memory:
  2223.  
  2224.                                 alchemy --r4 -Csample.ucr -Xb3000 -+ -$
  2225.                                 image.tga
  2226.  
  2227.                            Plot the image generated by the previous example
  2228.                            (for MS-DOS machines with the plotter connected
  2229.                            to a port which is mapped to prn:):
  2230.  
  2231.                                 copy /b image.rtl prn:
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253.  
  2254.  
  2255.  
  2256.  
  2257.  
  2258.  
  2259.  
  2260.  
  2261.  
  2262.  
  2263.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-18
  2264.  
  2265.  
  2266.  
  2267.           HSI JPEG                                                      --j
  2268.  
  2269.  
  2270.                            The HSI JPEG format is a variation of the JPEG
  2271.                            format that was designed by Handmade Software to
  2272.                            better compress paletted images.  Paletted
  2273.                            images often have large areas where the image
  2274.                            consists of 1 or 2 colours; JPEG compression
  2275.                            does a poor job on these sections when compared
  2276.                            to LZW compression.  HSI JPEG files are a
  2277.                            combination of JPEG and LZW compression.
  2278.  
  2279.           Syntax           --j
  2280.  
  2281.           Extension        .jpg
  2282.  
  2283.           Creator          Handmade Software, Inc.
  2284.  
  2285.           Used by          Image Alchemy
  2286.                            GIF2JPG (another Handmade Software product)
  2287.  
  2288.           Variations       8 bit paletted
  2289.  
  2290.           Comments         HSI JPEG files are not compatible with JPEG or
  2291.                            JFIF files.  If you intend to transfer files to
  2292.                            other systems do not use this format, use the
  2293.                            standard JPEG format instead (using the -j
  2294.                            option).
  2295.  
  2296.           Example          Convert the file madonna.gif to a HSI JPEG file:
  2297.  
  2298.                                 alchemy --j madonna.gif
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320.  
  2321.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-19
  2322.  
  2323.  
  2324.  
  2325.           HSI Palette                                                    -l
  2326.  
  2327.  
  2328.                            PAL files are palettes which are ASCII files
  2329.                            that can be edited with a text editor.
  2330.  
  2331.           Syntax           -l (lower case L)
  2332.  
  2333.           Extension        .pal
  2334.  
  2335.           Creator          Handmade Software, Inc.
  2336.  
  2337.           Used by          Image Alchemy
  2338.  
  2339.           Variations       Palette files are always ASCII files.
  2340.  
  2341.           Limitations      .PAL files contain only a palette.
  2342.  
  2343.                            Viewing a .PAL file or converting a .PAL file to
  2344.                            another image format is not allowed.
  2345.  
  2346.           Comments         The format of PAL files is described in
  2347.                            Appendix H.
  2348.  
  2349.           Related options  -f   Match image to specified palette
  2350.                            -F   False colour with specified palette
  2351.  
  2352.           Examples         Extract the palette from the GIF file
  2353.                            madonna.gif:
  2354.  
  2355.                                 alchemy madonna.gif -l
  2356.  
  2357.                            Convert the file image.tga to a GIF file,
  2358.                            matching the palette found in standard.pal:
  2359.  
  2360.                                 alchemy image.tga -g -f standard.pal
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-20
  2380.  
  2381.  
  2382.  
  2383.           HSI Raw                                                        -r
  2384.  
  2385.  
  2386.                            HSI Raw files are used internally by Image
  2387.                            Alchemy when converting between certain
  2388.                            combinations of image formats.  If you are
  2389.                            interested in converting custom format images to
  2390.                            be used with Image Alchemy we suggest using HSI
  2391.                            Raw Files.
  2392.  
  2393.           Syntax           -r
  2394.  
  2395.           Extension        .raw
  2396.  
  2397.           Creator          Handmade Software Inc.
  2398.  
  2399.           Used by          Image Alchemy
  2400.  
  2401.           Variations       8 bit paletted and 24 bit true colour,
  2402.                            uncompressed, not packed.
  2403.  
  2404.           Comments         This format is used internally as temporary
  2405.                            files by Alchemy when doing certain image
  2406.                            conversions; it can also be explicitly read and
  2407.                            written.  This format is described in Appendix
  2408.                            F.
  2409.  
  2410.           Examples         Convert the file test.lbm to a raw file:
  2411.  
  2412.                                 alchemy test.lbm -r
  2413.  
  2414.                            Convert the raw file, test.raw, to a 24 bit
  2415.                            Targa file called output.tga:
  2416.  
  2417.                                 alchemy -24 -a test.raw output.tga
  2418.  
  2419.  
  2420.  
  2421.  
  2422.  
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428.  
  2429.  
  2430.  
  2431.  
  2432.  
  2433.  
  2434.  
  2435.  
  2436.  
  2437.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-21
  2438.  
  2439.  
  2440.  
  2441.           IFF/ILBM                                                       -i
  2442.  
  2443.  
  2444.                            IFF (Interchange File Format) files are used by
  2445.                            Amiga computers for storing a number of types of
  2446.                            data, including images, text, and music; ILBM
  2447.                            (InterLeaved BitMap) is a type of IFF file used
  2448.                            to store images.
  2449.  
  2450.           Syntax           -i
  2451.  
  2452.           Extensions       .lbm
  2453.                            .iff
  2454.                            .ilbm
  2455.  
  2456.           Creator          Commodore-Amiga Corp.
  2457.  
  2458.           Used by          Amiga
  2459.                            Deluxe Paint
  2460.  
  2461.           Variations       Reads 1 through 8 bit, 24 bit, and HAM images
  2462.  
  2463.                            Writes 1 through 8 bit and 24 bit images.
  2464.  
  2465.           Limitations      Dynamic Hi-Res images are not supported.
  2466.  
  2467.                            Does not write images in any of the Amiga
  2468.                            specific display modes.
  2469.  
  2470.           Comments         If you're writing an ILBM file for use on an
  2471.                            Amiga, you probably want to write either a
  2472.                            paletted file with 32 colours or a 24 bit file.
  2473.                            24 bit ILBM files can then be converted to one
  2474.                            of the Amiga specific display modes with various
  2475.                            third-party utilities.
  2476.  
  2477.           Example          Convert the file input.pcx to an IFF/ILBM file
  2478.                            called output.lbm with 32 colours:
  2479.  
  2480.                                 alchemy -i -c32 input.pcx output.lbm
  2481.  
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487.  
  2488.  
  2489.  
  2490.  
  2491.  
  2492.  
  2493.  
  2494.  
  2495.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-22
  2496.  
  2497.  
  2498.  
  2499.           JPEG/JFIF                                                      -j
  2500.  
  2501.  
  2502.                            JPEG is a new type of image file format that
  2503.                            uses a lossy compression technique to achieve
  2504.                            high compression ratios.  See Appendix C, JPEG
  2505.                            Compression, for more information.
  2506.  
  2507.           Syntax           -j[coding] quality
  2508.  
  2509.           Parameters       coding:
  2510.                                 Specify the type of entropy coding to
  2511.                            perform.
  2512.                                    none:  default Huffman coding
  2513.                                    h:  optimum Huffman coding
  2514.                            quality:
  2515.                                 1 through 100 (larger is higher quality)
  2516.                            The default quality is 32.
  2517.  
  2518.           Extension        .jpg
  2519.  
  2520.           Creator          Joint Photographic Experts Group (JPEG)
  2521.  
  2522.           Used by          Lossy compression of photographic images.
  2523.  
  2524.           Variations       Gray-scale images are saved as single channel
  2525.                            JPEG files; colour images are saved as three
  2526.                            channel JPEG files.
  2527.  
  2528.                            Reads and writes baseline JPEG with CCIR-601
  2529.                            YCbCr colour space, interleaved components,
  2530.                            Huffman coded.
  2531.  
  2532.                            Alchemy can read files with any component sub-
  2533.                            sampling up to 4x4; it always writes 2h:1v 1h:1v
  2534.                            1h:1v.
  2535.  
  2536.                            Alchemy JPEG files comply with the industry
  2537.                            standard `JFIF' interchange format.
  2538.  
  2539.           Limitations      Can not read non-interleaved JPEG files.
  2540.  
  2541.                            JPEG files are always lossy, which means that
  2542.                            the compressed image is not identical to the
  2543.                            original image.  At high quality factors (32 and
  2544.                            above) this loss is generally so slight as to be
  2545.                            barely noticeable.  There is no quality factor
  2546.                            which is guaranteed to be lossless.
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-23
  2554.  
  2555.  
  2556.  
  2557.           Comments         By default, Image Alchemy uses a fixed set of
  2558.                            Huffman tables to compress an image.  If the -j
  2559.                            is immediately followed by an 'h', Alchemy will
  2560.                            generate a set of custom tables optimized for
  2561.                            the image and quality factor.  This usually
  2562.                            produces 5-20% better compression (depending on
  2563.                            the image content and quality factor) but
  2564.                            requires an additional pass over the image data,
  2565.                            so it takes a little longer to compress (there's
  2566.                            no effect on the decompression time).
  2567.  
  2568.                            Quality may vary between 1 and 100; the default
  2569.                            is 32.  The higher the number the higher the
  2570.                            quality of the image and the lower the
  2571.                            compression ratio.  Quality factors below 10
  2572.                            will produce images with significant loss of
  2573.                            quality.
  2574.  
  2575.                            JPEG files are based on the Joint Photographic
  2576.                            Experts Group (JPEG) CD 10918-1 draft standard.
  2577.  
  2578.                            Since JPEG compression was designed for use with
  2579.                            continuous tone images (such as those produced
  2580.                            by a scanner or digitizer), poor results can be
  2581.                            expected when compressing line drawings.
  2582.  
  2583.           Related options  -q   Apply Smoothing when decompressing a JPEG
  2584.                            image.
  2585.  
  2586.                            Because JPEG compression works on 8x8 pixel
  2587.                            blocks there may be discontinuities at the edges
  2588.                            of these blocks producing block artifacts.
  2589.                            Smoothing attempts to reduce these artifacts.
  2590.                            Smoothing is really only necessary at very low
  2591.                            quality settings (less than 10); even then the
  2592.                            effects of smoothing are not particularly
  2593.                            significant.
  2594.  
  2595.           Examples         Convert the file photo.tga to a JPEG file called
  2596.                            photo.jpg, using a high quality setting:
  2597.  
  2598.                                 alchemy -j70 photo.tga
  2599.  
  2600.                            Convert the JPEG file, lores.jpg, to a PCX file
  2601.                            using smoothing:
  2602.  
  2603.                                 alchemy lores.jpg -p -q
  2604.  
  2605.  
  2606.  
  2607.  
  2608.  
  2609.  
  2610.  
  2611.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-24
  2612.  
  2613.  
  2614.  
  2615.           Jovian VI                                                     --J
  2616.  
  2617.  
  2618.                            Jovian VI files are created by the Jovian Logic
  2619.                            video capture boards.
  2620.  
  2621.           Syntax           --J
  2622.  
  2623.           Extensions       .vi
  2624.  
  2625.           Creator          Jovian Logic Corp.
  2626.  
  2627.           Used by          Jovian Logic
  2628.  
  2629.           Variations       Reads 1, 4, 6, and 8 bit gray-scale images, 4
  2630.                            and 8 bit colour paletted images, and 16 and 24
  2631.                            bit true colour images.
  2632.  
  2633.                            Writes 8 bit gray-scale, 4 and 8 bit colour
  2634.                            paletted images, and 16 and 24 bit true colour
  2635.                            images.
  2636.  
  2637.           Limitations      Reads files with 6 and 8 bit palettes, always
  2638.                            writes 6 bit palettes.
  2639.  
  2640.                            Gray-scale files are always 8 bit.
  2641.  
  2642.           Comments         When writing a VI file the palette always starts
  2643.                            at 0, but will not necessarily be black (which
  2644.                            is the way that Jovian VI files are written).
  2645.  
  2646.           Example          Convert the GIF file, test.gif, to a 16 colour
  2647.                            VI file:
  2648.  
  2649.                                 alchemy test.gif --J -c16
  2650.  
  2651.  
  2652.  
  2653.  
  2654.  
  2655.  
  2656.  
  2657.  
  2658.  
  2659.  
  2660.  
  2661.  
  2662.  
  2663.  
  2664.  
  2665.  
  2666.  
  2667.  
  2668.  
  2669.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-25
  2670.  
  2671.  
  2672.  
  2673.           Macintosh PICT/PICT2                                           -m
  2674.  
  2675.  
  2676.                            PICT files were created by Apple Computer as a
  2677.                            common format for Macintosh applications to use.
  2678.                            Virtually every Macintosh application can use
  2679.                            PICT files.
  2680.  
  2681.           Syntax           -m
  2682.  
  2683.           Extensions       .pict
  2684.                            .pic
  2685.  
  2686.           Creator          Apple Computer, Inc.
  2687.  
  2688.           Used by          Macintosh computers
  2689.  
  2690.           Variations       Reads 1, 2, 4, 8, 16, and 32 bit PICT and PICT2
  2691.                            images
  2692.  
  2693.                            Writes 1, 2, 4, 8, and 32 bit PICT2 images.
  2694.  
  2695.           Limitations      Only pays attention to pixMaps in the image;
  2696.                            attempts to skip everything else.
  2697.  
  2698.           Comments         Due to the enormous number of options allowed in
  2699.                            PICT files, reading PICTs may not always work.
  2700.                            See Appendix A, Answers to Frequently Asked
  2701.                            Questions, for more information.
  2702.  
  2703.           Example          Convert the file input1.gif to a Mac PICT file
  2704.                            called input1.pic:
  2705.  
  2706.                                 alchemy -m input1.gif
  2707.  
  2708.  
  2709.  
  2710.  
  2711.  
  2712.  
  2713.  
  2714.  
  2715.  
  2716.  
  2717.  
  2718.  
  2719.  
  2720.  
  2721.  
  2722.  
  2723.  
  2724.  
  2725.  
  2726.  
  2727.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-26
  2728.  
  2729.  
  2730.  
  2731.           MTV Ray Tracer                                                --M
  2732.  
  2733.  
  2734.                            MTV files are used by the MTV RayTracer, a
  2735.                            public domain ray tracer for Suns and other
  2736.                            workstations.
  2737.  
  2738.           Syntax           --M
  2739.  
  2740.           Extension        .mtv
  2741.  
  2742.           Creator          Mark T. VandeWettering
  2743.  
  2744.           Used by          MTV Raytracer
  2745.  
  2746.           Variations       24 bit true colour.
  2747.  
  2748.           Comments         MTV is a public domain ray-tracer available free
  2749.                            of charge via anonymous ftp from
  2750.                            drizzle.cs.uoregon.edu or via floppy disk from
  2751.                            us.
  2752.  
  2753.           Example          Convert the file spheres.img to a MTV file:
  2754.  
  2755.                                 alchemy spheres.img --M
  2756.  
  2757.  
  2758.  
  2759.  
  2760.  
  2761.  
  2762.  
  2763.  
  2764.  
  2765.  
  2766.  
  2767.  
  2768.  
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776.  
  2777.  
  2778.  
  2779.  
  2780.  
  2781.  
  2782.  
  2783.  
  2784.  
  2785.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-27
  2786.  
  2787.  
  2788.  
  2789.           PCPAINT/Pictor Page Format                                     -A
  2790.  
  2791.  
  2792.                            The Pictor format was designed so that an image
  2793.                            could be loaded into an IBM graphics adapter
  2794.                            very quickly; it does this by almost exactly
  2795.                            duplicating the organization of the graphics
  2796.                            adapter memory.  This makes the format hardware
  2797.                            dependent.
  2798.  
  2799.           Syntax           -A type
  2800.  
  2801.           Parameter           type:
  2802.                                    0:320x200x4 CGA*
  2803.                                    1:320x200x16 PCjr/Tandy*
  2804.                                    2:640x200x2 CGA*
  2805.                                    3:640x200x16 EGA
  2806.                                    4:640x350x2 EGA
  2807.                                    5:640x350x4 EGA
  2808.                                    6:640x350x16 EGA
  2809.                                    7:720x348x2 Hercules*
  2810.                                    8:640x350x16 VGA
  2811.                                    9:320x200x16 EGA
  2812.                                    10:640x400x2 AT&T/Toshiba*
  2813.                                    11:320x200x256 VGA/MCGA
  2814.                                    12:640x480x16 VGA
  2815.                                    13:720x348x16 Hercules InColor*
  2816.                                    14:640x480x2 VGA/MCGA
  2817.                                    15:800x600x2 EGA/VGA
  2818.                                    16:800x600x16 EGA/VGA
  2819.                                    17:640x400x256 SVGA
  2820.                                    18:640x480x256 SVGA
  2821.                                    19:800x600x256 SVGA
  2822.  
  2823.  
  2824.                                    20:1024x768x2 SVGA
  2825.                                    21:1024x768x16 SVGA
  2826.                                    22:360x480x256 VGA
  2827.                                    23:1024x768x256 SVGA
  2828.                               The default is 640x480x256 SVGA.
  2829.                               *These modes are not yet supported.
  2830.  
  2831.           Extension        .pic
  2832.                            .clp
  2833.  
  2834.           Creator          John Bridges
  2835.  
  2836.           Used by          PCPAINT
  2837.                            GRASP
  2838.  
  2839.           Variations       There are variations for most IBM and third
  2840.                            party graphics adapter display modes.
  2841.  
  2842.  
  2843.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-28
  2844.  
  2845.  
  2846.  
  2847.           Limitations      Only the EGA and VGA modes are supported at this
  2848.                            time.  Text modes are not supported.
  2849.  
  2850.           Comments         Some Pictor files do not contain palettes.  For
  2851.                            those files Alchemy will default to using a
  2852.                            standard palette appropriate to the display mode
  2853.                            the file was saved in.  However, the image may
  2854.                            not use the default palette; in that case you
  2855.                            can read the palette from another file with the
  2856.                            -F false colour option.
  2857.  
  2858.           Related options  -F   False colour
  2859.  
  2860.           Example          Convert the file image.pcx to a Pictor file
  2861.                            called image.pic, for 800x600x256 SVGA mode:
  2862.  
  2863.                                 alchemy -A19 image.pcx
  2864.  
  2865.  
  2866.  
  2867.  
  2868.  
  2869.  
  2870.  
  2871.  
  2872.  
  2873.  
  2874.  
  2875.  
  2876.  
  2877.  
  2878.  
  2879.  
  2880.  
  2881.  
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.  
  2888.  
  2889.  
  2890.  
  2891.  
  2892.  
  2893.  
  2894.  
  2895.  
  2896.  
  2897.  
  2898.  
  2899.  
  2900.  
  2901.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-29
  2902.  
  2903.  
  2904.  
  2905.           PCX                                                            -p
  2906.  
  2907.  
  2908.                            PCX files are used extensively by MS-DOS
  2909.                            machines.  Originally created by ZSoft for use
  2910.                            by their paint packages, PCX files can be read
  2911.                            and written by almost all MS-DOS paint software
  2912.                            and desktop publishing software.
  2913.  
  2914.                            A new variation of PCX file, DCX, is used by
  2915.                            many MS-DOS fax boards.
  2916.  
  2917.                            PCX files suffer from two problems:  the
  2918.                            compression ratio is poor for 8 and 24 bit
  2919.                            images and PCX files are often written out
  2920.                            incorrectly; see the Limitations section below
  2921.                            for details.
  2922.  
  2923.           Syntax           -p type
  2924.  
  2925.           Parameter        type:
  2926.                                 0:Standard PCX
  2927.                                 1:DCX
  2928.                            The default is standard PCX.
  2929.  
  2930.           Extension        .pcx
  2931.  
  2932.           Creator          ZSoft Corporation
  2933.  
  2934.           Used by          PC Paint
  2935.                            Publisher's Paintbrush
  2936.                            Most paint and desktop publishing software can
  2937.                            read and write PCX files.
  2938.                            Fax board software uses the DCX variation of
  2939.                            PCX.
  2940.  
  2941.           Variations       1, 4, 8, and 24 bits per pixel for standard PCX
  2942.                            files.
  2943.                            1 bit per pixel for DCX files.
  2944.  
  2945.           Limitations      PCX format files are often written out
  2946.                            incorrectly; Alchemy attempts to figure out what
  2947.                            is wrong and make intelligent decisions (things
  2948.                            Alchemy can deal with include PCX files without
  2949.                            palettes, files missing the last line of image
  2950.                            data, and files with illegal (and incorrect)
  2951.                            combinations of bits per pixel and planes).
  2952.  
  2953.  
  2954.  
  2955.  
  2956.  
  2957.  
  2958.  
  2959.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-30
  2960.  
  2961.  
  2962.  
  2963.                            24 bit PCX files are very new and most other
  2964.                            software can not read them.  Therefore, unless
  2965.                            you are sure that the software you are using can
  2966.                            read a 24 bit PCX file, you probably want to use
  2967.                            the -8 option to force Alchemy to write a
  2968.                            paletted file when generating a PCX file.
  2969.  
  2970.                            DCX files are multiple page PCX images which are
  2971.                            used by various manufacturers of fax boards and
  2972.                            fax software.  Alchemy only reads the first page
  2973.                            of a DCX file.  Alchemy always writes single
  2974.                            page DCX files which are black and white.
  2975.  
  2976.           Comments         Because so many software packages can read and
  2977.                            write PCX files we are especially interested in
  2978.                            supporting as many variations as possible.  If
  2979.                            you have any PCX files which Alchemy does not
  2980.                            read correctly please contact us.
  2981.  
  2982.                            Since DCX files are always 1 bit, black and
  2983.                            white images, Alchemy assumes the use of
  2984.                            -b -c2 -8 when writing the DCX variation of PCX.
  2985.  
  2986.                            ZSoft recently changed some of the information
  2987.                            in the header of PCX files so they now include
  2988.                            image resolution.  Some fax board software makes
  2989.                            use of this information when transmitting PCX or
  2990.                            DCX files as faxes.  See the example section
  2991.                            below for an example of how to specify image
  2992.                            resolution when writing a PCX file.
  2993.  
  2994.           Related options  -D   Specify image resolution.
  2995.  
  2996.           Example          Convert the GIF file, lush.gif, to a PCX file:
  2997.  
  2998.                                 alchemy lush.gif -p
  2999.  
  3000.                            Convert the scanned image, page1.tif, to a DCX
  3001.                            file:
  3002.  
  3003.                                 alchemy -p1 page1.tif
  3004.  
  3005.                            Convert the scanned image, page2.tif, to a DCX
  3006.                            file, specifying an image resolution of 200x100
  3007.                            (a common resolution for fax images):
  3008.  
  3009.                                 alchemy -p1 page2.tif -D 200 100
  3010.  
  3011.  
  3012.  
  3013.  
  3014.  
  3015.  
  3016.  
  3017.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-31
  3018.  
  3019.  
  3020.  
  3021.           Portable BitMap (PBM)                                          -k
  3022.  
  3023.  
  3024.                            The Portable BitMap format was developed by Jef
  3025.                            Poskanzer to allow the transferring of black and
  3026.                            white image files between different
  3027.                            workstations.  The PBM format has grown to
  3028.                            include black and white, gray-scale, and true
  3029.                            colour images, a large set of programs to
  3030.                            convert various other image formats to and from
  3031.                            PBM, and a set of image manipulation tools.  The
  3032.                            PBM tools are available free of charge
  3033.                            (unfortunately, due to their memory
  3034.                            requirements, many are not useable on MS-DOS
  3035.                            machines).
  3036.  
  3037.           Syntax           -k
  3038.  
  3039.           Extensions       .pnm Portable aNyMap (Any of those below)
  3040.                            .pbm Portable BitMap (Black and white)
  3041.                            .pgm Portable GrayMap (Gray-scale)
  3042.                            .ppm Portable PixelMap (True colour)
  3043.  
  3044.           Creator          Jef Poskanzer
  3045.  
  3046.           Used by          Portable BitMap Package
  3047.                            Various workstation graphic programs
  3048.  
  3049.           Variations       Reads and writes 1, 8, and 24 bit RAWBITS
  3050.                            (binary) images.
  3051.  
  3052.                            To write out a PBM file use -b -c2.
  3053.                            To write out a PGM file use -b -c256.
  3054.                            To write out a PPM file use -24.
  3055.  
  3056.           Limitations      When writing a PBM file Alchemy always uses the
  3057.                            .pnm extension (the extension should be changed
  3058.                            based on the type of file being written).
  3059.  
  3060.           Comments         The PBM package is a set of image manipulation
  3061.                            tools which run on various workstations.  The
  3062.                            software is available for free via anonymous ftp
  3063.                            from expo.lcs.mit.edu as contrib/pbmplus.tar.Z,
  3064.                            ftp.ee.lbl.gov as pbmplus.tar.Z, or via floppy
  3065.                            disk from us.
  3066.  
  3067.           Examples         Convert the file sun.im32 to a PBM file:
  3068.  
  3069.                                 alchemy sun.im32 -k -b -c2
  3070.  
  3071.  
  3072.  
  3073.  
  3074.  
  3075.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-32
  3076.  
  3077.  
  3078.  
  3079.           Q0                                                            --q
  3080.  
  3081.  
  3082.                            The Q0 format is apparently commonly used by
  3083.                            various Japanese scanning, painting, and viewing
  3084.                            software to store 24 bit images.  Handmade
  3085.                            Software has no information other than a basic
  3086.                            description of the format and some sample
  3087.                            images; if you have further information on the
  3088.                            Q0 format please contact us.
  3089.  
  3090.           Syntax           --q
  3091.  
  3092.           Extensions       .q0  For pixel data
  3093.                            .rgb For pixel data
  3094.                            .fal For image header information
  3095.  
  3096.           Creator          Unknown
  3097.  
  3098.           Used by          Various Japanese image processing software.
  3099.  
  3100.           Variations       24 bits per pixel
  3101.  
  3102.           Comments         Q0 files are actually two files, one with the
  3103.                            extension .rgb or .q0 and the other with the
  3104.                            extension .fal.  The .rgb or .q0 file contains
  3105.                            the actual image data and the .fal file contains
  3106.                            the header information (primarily the height and
  3107.                            width of the image).  You specify the name of
  3108.                            the .rgb or .q0 file and Alchemy automatically
  3109.                            generates the name of the .fal file.
  3110.  
  3111.                            When writing a Q0 file Alchemy will overwrite,
  3112.                            without warning, existing .fal files.
  3113.  
  3114.           Example          Convert the file dogcow.gif to a Q0 file:
  3115.  
  3116.                                 alchemy dogcow.gif --q
  3117.  
  3118.  
  3119.  
  3120.  
  3121.  
  3122.  
  3123.  
  3124.  
  3125.  
  3126.  
  3127.  
  3128.  
  3129.  
  3130.  
  3131.  
  3132.  
  3133.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-33
  3134.  
  3135.  
  3136.  
  3137.           QDV                                                           --D
  3138.  
  3139.  
  3140.                            The QDV format is used by Giffer, a Macintosh
  3141.                            program which displays and converts image files.
  3142.  
  3143.           Syntax           --D
  3144.  
  3145.           Extension        .qdv
  3146.  
  3147.           Creator          Steve Blackstock
  3148.  
  3149.           Used by          Giffer
  3150.  
  3151.           Variations       QDV files are always 8 bits per pixel.
  3152.  
  3153.           Comments         Giffer is a great shareware (Beerwaretm,
  3154.                            actually) program for the Macintosh that
  3155.                            converts between various image file formats and
  3156.                            allows viewing of graphics files.
  3157.  
  3158.                            Since QDV files are always paletted, Alchemy
  3159.                            assumes the use of the -8 option when writing
  3160.                            QDV files.
  3161.  
  3162.           Example          Convert the file input.tga to a qdv file:
  3163.  
  3164.                                 alchemy input.tga --D
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173.  
  3174.  
  3175.  
  3176.  
  3177.  
  3178.  
  3179.  
  3180.  
  3181.  
  3182.  
  3183.  
  3184.  
  3185.  
  3186.  
  3187.  
  3188.  
  3189.  
  3190.  
  3191.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-34
  3192.  
  3193.  
  3194.  
  3195.           QRT                                                           --T
  3196.  
  3197.  
  3198.                            QRT files are generated by the QRT Ray Tracer, a
  3199.                            public domain ray-tracer for Amiga, Macintosh,
  3200.                            and IBM PC computers.
  3201.  
  3202.           Syntax           --T
  3203.  
  3204.           Extension        .raw
  3205.  
  3206.           Creator          Steve Korn
  3207.  
  3208.           Used by          QRT Ray Tracer
  3209.  
  3210.           Variations       24 bits per pixel
  3211.  
  3212.           Comments         Since QRT files are always true colour, Alchemy
  3213.                            assumes use of the -24 option.
  3214.  
  3215.           Example          Convert the file spheres.gif to a QRT file
  3216.                            called spheres.raw:
  3217.  
  3218.                                 alchemy --T spheres.gif
  3219.  
  3220.  
  3221.  
  3222.  
  3223.  
  3224.  
  3225.  
  3226.  
  3227.  
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239.  
  3240.  
  3241.  
  3242.  
  3243.  
  3244.  
  3245.  
  3246.  
  3247.  
  3248.  
  3249.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-35
  3250.  
  3251.  
  3252.  
  3253.           Scodl                                                         --s
  3254.  
  3255.  
  3256.                            Scodl files are used by Agfa/Matrix slide
  3257.                            recorders.
  3258.  
  3259.           Syntax           --s
  3260.  
  3261.           Extension        .scd
  3262.  
  3263.           Creator          Agfa Corporation / Matrix Instruments Inc.
  3264.  
  3265.           Used by          Agfa/Matrix slide recorders
  3266.  
  3267.           Variations       Writes 8 and 24 bit run-length coded (RLC)
  3268.                            images.
  3269.  
  3270.           Limitations      Output only.
  3271.  
  3272.           Comments         The image should be scaled up to either
  3273.                            2000x1366 or 4000x2732 to fill the slide.
  3274.  
  3275.                            There are some limitations with the current
  3276.                            version of the MVP software driver supplied by
  3277.                            Agfa/Matrix:
  3278.  
  3279.                            24 bit Scodl files are not correctly interpreted
  3280.                            by the MVP driver version 4.1 and earlier.  8
  3281.                            bit images are correctly interpreted.
  3282.  
  3283.                            When sending very large images to the background
  3284.                            MVP driver you must be using version 4.0 or
  3285.                            later and have lots of EMS memory (4 Megabytes
  3286.                            is recommended).  When using the foreground MVP
  3287.                            program turning on disk caching is necessary.
  3288.  
  3289.           Example          Convert the file picture.im32 to a Scodl file
  3290.                            using high quality scaling and preserving the
  3291.                            aspect ratio:
  3292.  
  3293.                                 alchemy --s -Xc2000 -Yc1366 -+ picture.im32
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.  
  3305.  
  3306.  
  3307.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-36
  3308.  
  3309.  
  3310.  
  3311.           Silicon Graphics Image                                         -n
  3312.  
  3313.  
  3314.                            Silicon Graphics Image files are used by Silicon
  3315.                            Graphics workstations.
  3316.  
  3317.           Syntax           -n
  3318.  
  3319.           Extension        .sgi
  3320.  
  3321.           Creator          Silicon Graphics, Inc.
  3322.  
  3323.           Used by          Silicon Graphics workstations.
  3324.  
  3325.           Variations       Reads 1, 8 (gray-scale), and 24 bit verbatim
  3326.                            (uncompressed) and RLE files.
  3327.  
  3328.                            Writes 1, 8 (gray-scale), and 24 bit verbatim
  3329.                            files.
  3330.  
  3331.           Limitations      Only uncompressed (verbatim) files can be
  3332.                            written.
  3333.  
  3334.           Comments         Only gray-scale images may be 8 bit files.
  3335.                            Alchemy will automatically switch to 24 bit mode
  3336.                            when writing a colour image.
  3337.  
  3338.           Example          Convert the Sun raster file sun.im8 to a SGI
  3339.                            file called sgiout:
  3340.  
  3341.                                 alchemy -n sun.im8 sgiout -.
  3342.  
  3343.  
  3344.  
  3345.  
  3346.  
  3347.  
  3348.  
  3349.  
  3350.  
  3351.  
  3352.  
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362.  
  3363.  
  3364.  
  3365.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-37
  3366.  
  3367.  
  3368.  
  3369.           Stork                                                          -K
  3370.  
  3371.  
  3372.                            Stork files are CMYK images used by Stork's
  3373.                            colour proofing machines.
  3374.  
  3375.           Syntax           -K compressionType
  3376.  
  3377.           Parameter        compressionType:
  3378.                                 0:None
  3379.                                 1:Run length coded
  3380.                            The default is none.
  3381.  
  3382.           Extensions       .idx Index file
  3383.                            .pre Image data
  3384.                            .tab Colour lookup table
  3385.  
  3386.           Creator          Stork Colorproofing B.V.
  3387.  
  3388.           Used by          Stork Colorproofing machines
  3389.  
  3390.           Variations       Reads and writes 32 KCMY, 32 KCMY RLC, 16 CLU,
  3391.                            and 16 CLU RLC images (type 100, 101, 300, and
  3392.                            301, respectively).
  3393.  
  3394.           Limitations      Alchemy can't write paletted files with more
  3395.                            than 256 colours.
  3396.  
  3397.                            When reading paletted files with more than 256
  3398.                            colours they are treated as true colour.
  3399.  
  3400.           Comments         Stork images are stored in two or three files
  3401.                            (depending on whether or not there's a colour
  3402.                            lookup table associated with the image).  The
  3403.                            filename given to Alchemy should be the name of
  3404.                            the data file (normally with a suffix of .pre);
  3405.                            Alchemy will generate the names of the other
  3406.                            files by stripping the extension and appending
  3407.                            .idx for the index file and .tab for the colour
  3408.                            lookup table (if any).  Alchemy will overwrite
  3409.                            existing .idx and .tab files without warning
  3410.                            when creating Stork files.
  3411.  
  3412.           Related options  -C   Undercolour Removal File
  3413.  
  3414.           Example          Convert the file image.tga to an uncompressed
  3415.                            Stork image called image.pre and image.idx,
  3416.                            using the undercolour removal file sample.ucr:
  3417.  
  3418.                                 alchemy -K -Csample.ucr image.tga
  3419.  
  3420.  
  3421.  
  3422.  
  3423.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-38
  3424.  
  3425.  
  3426.  
  3427.           Sun Raster                                                     -s
  3428.  
  3429.  
  3430.                            Sun Raster files are used by Sun Microsystems
  3431.                            workstations.
  3432.  
  3433.           Syntax           -s
  3434.  
  3435.           Extensions       .rast
  3436.                            .ras
  3437.                            .im
  3438.                            .im1
  3439.                            .im8
  3440.                            .im24
  3441.                            .im32
  3442.  
  3443.           Creator          Sun Microsystems, Inc.
  3444.  
  3445.           Used by          Sun workstations
  3446.  
  3447.           Variations       Reads 1, 8, 24, and 32 bit Standard, BGR, RGB,
  3448.                            and Byte Encoded (RLE) files.
  3449.  
  3450.                            Writes 1, 8, and 32 bit Standard files.
  3451.  
  3452.           Limitations      For a short time a version of the PBM toolkit
  3453.                            wrote Sun Raster files which had the wrong RGB
  3454.                            order.  Unfortunately there seem to be many
  3455.                            images which were generated with this incorrect
  3456.                            RGB order.  Please be aware that Alchemy's Sun
  3457.                            Raster reading and writing capability has been
  3458.                            extensively tested and compared to various other
  3459.                            tools; the RGB order is correct.
  3460.  
  3461.           Comments         Sun Raster files are normally not compressed and
  3462.                            so take up lots of disk space.
  3463.  
  3464.                            There is no standard extension for Sun Raster
  3465.                            files; the extensions that Alchemy uses seem to
  3466.                            be the most common.
  3467.  
  3468.           Example          Convert the SGI file sgiout to a sun raster file
  3469.                            called sun.im8:
  3470.  
  3471.                                 alchemy -s sgiout sun.im8
  3472.  
  3473.  
  3474.  
  3475.  
  3476.  
  3477.  
  3478.  
  3479.  
  3480.  
  3481.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-39
  3482.  
  3483.  
  3484.  
  3485.           Tagged Interchange File Format (TIFF)                          -t
  3486.  
  3487.  
  3488.                            TIFF is designed to be a universal raster image
  3489.                            format; it's very popular with desktop
  3490.                            publishing packages.
  3491.  
  3492.           Syntax           -t compressionType
  3493.  
  3494.           Parameter        compressionType:
  3495.                                 0:None
  3496.                                 1:LZW
  3497.                                 2:PackBits
  3498.                                 3:Group III Fax
  3499.                                 4:Group IV Fax
  3500.                                 5:CCITT RLE
  3501.                            The default is LZW Compression.
  3502.  
  3503.           Extensions       .tiff
  3504.                            .tif
  3505.  
  3506.           Creator          Aldus Corp.
  3507.                            Microsoft Corp.
  3508.  
  3509.           Used by          Various desktop publishing and scanning
  3510.                            software.
  3511.  
  3512.           Variations       Reads TIFF class B, G, R, and most class P
  3513.                            files.
  3514.  
  3515.                            Reads 1, 4, 8, 12, 24, and 32 bit images
  3516.                            (ignoring the alpha channel for 32 bit images).
  3517.  
  3518.                            Input compression types supported are raw, LZW,
  3519.                            PackBits, Group III fax, Group IV fax, CCITT RLE
  3520.                            (byte and word aligned), NeXT, Thunderscan,
  3521.                            PICIO, and SGI RLE.
  3522.  
  3523.                            Writes class B, G, P, and R files, depending on
  3524.                            the input file and options specified.
  3525.  
  3526.                            Writes 1, 4, 8, and 24 bit images.
  3527.  
  3528.           Limitations      Class P TIFF files can only be read if they have
  3529.                            1, 4, or 8 bits per pixel.
  3530.  
  3531.           Comments         1,4, and 8 bit output files are paletted unless
  3532.                            the palette is all gray, in which case the
  3533.                            output is a gray-scale file.
  3534.  
  3535.                            If you have TIFF files with 3, 5, 6, or 7 bits
  3536.                            per pixel please contact us.
  3537.  
  3538.  
  3539.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-40
  3540.  
  3541.  
  3542.  
  3543.           Example          Convert the file input.gif to an uncompressed
  3544.                            gray-scale TIFF file called output.tif:
  3545.  
  3546.                                 alchemy -t0 -b input.gif output.tif
  3547.  
  3548.  
  3549.  
  3550.  
  3551.  
  3552.  
  3553.  
  3554.  
  3555.  
  3556.  
  3557.  
  3558.  
  3559.  
  3560.  
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.  
  3569.  
  3570.  
  3571.  
  3572.  
  3573.  
  3574.  
  3575.  
  3576.  
  3577.  
  3578.  
  3579.  
  3580.  
  3581.  
  3582.  
  3583.  
  3584.  
  3585.  
  3586.  
  3587.  
  3588.  
  3589.  
  3590.  
  3591.  
  3592.  
  3593.  
  3594.  
  3595.  
  3596.  
  3597.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-41
  3598.  
  3599.  
  3600.  
  3601.           Targa                                                          -a
  3602.  
  3603.  
  3604.                            Targa files were created to support the line of
  3605.                            Targa graphics cards.  The Targa format is
  3606.                            popular with scanners and high end paint
  3607.                            packages.
  3608.  
  3609.           Syntax           -a outputType
  3610.  
  3611.           Parameter        outputType:
  3612.                                 0:uncompressed
  3613.                                 1:Run Length Coded
  3614.                                 10:uncompressed, no footer
  3615.                                 11:Run Length Coded, no footer
  3616.                            The default is 0 (uncompressed).
  3617.  
  3618.           Extension        .tga
  3619.  
  3620.           Creator          Truevision, Inc.
  3621.  
  3622.           Used by          Various scanning and paint software.
  3623.  
  3624.           Variations       Reads 8, 15, 16, 24, and 32 bit images, ignoring
  3625.                            the alpha channel for 32 bit images.
  3626.  
  3627.                            Writes 8, 15, 16, 24, and 32 bit images, writing
  3628.                            an empty alpha channel for 32 bit images.
  3629.  
  3630.           Comments         15 and 16 bit output are actually the same
  3631.                            except for one field in the header.
  3632.  
  3633.                            Targa files allow a footer containing additional
  3634.                            information such as aspect ratio.  However some
  3635.                            software is unable to read Targa files which
  3636.                            have a footer, so Alchemy allows all valid
  3637.                            combinations to be written.  The most common
  3638.                            variant for software to be able to read is 24
  3639.                            bit uncompressed (specify -a0 and -24).
  3640.  
  3641.           Example          Convert the file input.tif to an uncompressed 24
  3642.                            bit Targa file:
  3643.  
  3644.                                 alchemy input.tif -a -24
  3645.  
  3646.                            Convert the file input.tif to an uncompressed 15
  3647.                            bit Targa file called output.tga with no footer:
  3648.  
  3649.                                 alchemy -a10 -15 input.tif output.tga
  3650.  
  3651.  
  3652.  
  3653.  
  3654.  
  3655.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-42
  3656.  
  3657.  
  3658.  
  3659.           Utah Raster Toolkit (RLE)                                     --u
  3660.  
  3661.  
  3662.                            The Utah Raster Toolkit is a set of public
  3663.                            domain utilities for manipulating and converting
  3664.                            images for various workstations.  The source
  3665.                            code is freely available (see below).
  3666.  
  3667.           Syntax           --u
  3668.  
  3669.           Extension        .rle
  3670.  
  3671.           Creator          The University of Utah
  3672.                            The University of Michigan
  3673.  
  3674.           Used by          Utah RLE toolkit
  3675.  
  3676.           Variations       Reads and writes 1 and 3 channel 8 bits per
  3677.                            pixel files; the Alpha Channel is ignored during
  3678.                            reading.
  3679.  
  3680.           Limitations      While reading, files which are 1 channel and
  3681.                            have either no colour map or a single channel
  3682.                            colour map are assumed to be gray-scale images.
  3683.                            The colour map, if present, will be used as a
  3684.                            gamma correction table.
  3685.  
  3686.                            Files which are 1 channel and have a 3 channel
  3687.                            colour map are assumed to be paletted colour
  3688.                            files.
  3689.  
  3690.                            Files which are 3 channel are assumed to be true
  3691.                            colour.
  3692.  
  3693.                            When writing RLE files Alchemy will generate a 1
  3694.                            channel file with a 3 channel colour map for
  3695.                            paletted images and a 3 channel file with no
  3696.                            colour map for true colour images.
  3697.  
  3698.           Comments         Alchemy does not write optimally compressed
  3699.                            images.
  3700.  
  3701.                            The Utah Raster Toolkit is available free of
  3702.                            charge as pub/urt-3.0.tar.Z via anonymous ftp
  3703.                            from cs.utah.edu, weedeater.math.yale.edu, or
  3704.                            freebie.engin.umich.edu or via floppy disk from
  3705.                            us.
  3706.  
  3707.           Example          Convert the PBM file, image.ppm, to a Utah RLE
  3708.                            file:
  3709.  
  3710.                                 alchemy image.ppm --U
  3711.  
  3712.  
  3713.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-43
  3714.  
  3715.  
  3716.  
  3717.           Vivid                                                         --I
  3718.  
  3719.  
  3720.                            Vivid is a shareware ray-tracer for MS-DOS
  3721.                            computers
  3722.  
  3723.           Syntax           --I (upper case i)
  3724.  
  3725.           Extension        .img
  3726.  
  3727.           Creator          Steven B. Coy
  3728.  
  3729.           Used by          Vivid Ray Tracer
  3730.  
  3731.           Variations       Reads and writes 24 bit RLE files.
  3732.  
  3733.           Comments         The Vivid Ray Tracer is a shareware program for
  3734.                            PCs and is available from
  3735.                                 Stephen Coy
  3736.                                 15205 NE 13th Pl., #2904
  3737.                                 Bellevue, WA  98007
  3738.  
  3739.           Example          Convert the file spheres.qrt to a Vivid file:
  3740.  
  3741.                                 alchemy spheres.qrt --I
  3742.  
  3743.  
  3744.  
  3745.  
  3746.  
  3747.  
  3748.  
  3749.  
  3750.  
  3751.  
  3752.  
  3753.  
  3754.  
  3755.  
  3756.  
  3757.  
  3758.  
  3759.  
  3760.  
  3761.  
  3762.  
  3763.  
  3764.  
  3765.  
  3766.  
  3767.  
  3768.  
  3769.  
  3770.  
  3771.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-44
  3772.  
  3773.  
  3774.  
  3775.           Windows Bitmap (BMP)                                           -w
  3776.  
  3777.  
  3778.                            Windows BMP files are used by Microsoft Windows.
  3779.  
  3780.           Syntax           -w compressionType
  3781.  
  3782.           Parameter        compressionType:
  3783.                                 0:None
  3784.                                 1:RLE
  3785.                            The default is none.
  3786.  
  3787.           Extension        .bmp
  3788.  
  3789.           Creator          Microsoft Corp.
  3790.  
  3791.           Used by          Microsoft Windows
  3792.  
  3793.           Variations       Reads 1, 4, 8, and 24 bit RGB (raw), RLE4, and
  3794.                            RLE8 files.
  3795.  
  3796.                            Writes 1, 4, 8, and 24 bit RGB (raw), RLE4, and
  3797.                            RLE8 files.
  3798.  
  3799.           Limitations      Several of the programs which read and write RLE
  3800.                            files do not do so correctly; we do not
  3801.                            recommend writing RLE files unless you have
  3802.                            verified that they work with your intended
  3803.                            application.
  3804.  
  3805.           Comments         Microsoft supplied Windows 3.0 utilities cannot
  3806.                            read RLE4 or RLE8 files.
  3807.  
  3808.                            If you are converting an image to use as
  3809.                            wallpaper on a 16 colour Windows display you
  3810.                            will want to match the palette of the output
  3811.                            image to one of the existing 16 colour BMP
  3812.                            images supplied with Windows (chess.bmp, for
  3813.                            example).  If you do not do this the wallpaper
  3814.                            will not be loaded correctly.  See the example
  3815.                            section below for an example.
  3816.  
  3817.           Related options  -f   Match to existing palette
  3818.  
  3819.           Examples         Convert the image test.gif to a 16 colour
  3820.                            Windows BMP file to be used as wallpaper (the
  3821.                            file chess.bmp is supplied with Windows; this
  3822.                            example assumes that it is in the current
  3823.                            directory):
  3824.  
  3825.                                 alchemy test.gif -f chess.bmp -w
  3826.  
  3827.  
  3828.  
  3829.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-45
  3830.  
  3831.  
  3832.  
  3833.           WordPerfect Graphic File                                       -W
  3834.  
  3835.  
  3836.                            WordPerfect files are images which can be
  3837.                            imported into WordPerfect and various other word
  3838.                            processors and desktop publishing programs.
  3839.  
  3840.           Syntax           -W
  3841.  
  3842.           Extension        .wpg
  3843.  
  3844.           Creator          WordPerfect Corp.
  3845.  
  3846.           Used by          WordPerfect
  3847.  
  3848.           Variations       1 through 8 bits per pixel are supported.
  3849.  
  3850.           Limitations      Alchemy does not write optimally compressed
  3851.                            files.
  3852.  
  3853.                            Files with default palettes are not read
  3854.                            correctly.
  3855.  
  3856.           Comments         In addition to raster images WordPerfect files
  3857.                            may contain vectors and text information.  Such
  3858.                            information is lost when reading WordPerfect
  3859.                            files.
  3860.  
  3861.           Example          Convert the image, newpict.pcx, to a black and
  3862.                            white WPG file:
  3863.  
  3864.                                 alchemy newpict.pcx -b -c2 -W
  3865.  
  3866.  
  3867.  
  3868.  
  3869.  
  3870.  
  3871.  
  3872.  
  3873.  
  3874.  
  3875.  
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  
  3881.  
  3882.  
  3883.  
  3884.  
  3885.  
  3886.  
  3887.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-46
  3888.  
  3889.  
  3890.  
  3891.           XBM                                                           --b
  3892.  
  3893.  
  3894.                            XBM files are used by the X Windowing System.
  3895.                            XBM files are C source code files which can be
  3896.                            read and written by various X utilities and are
  3897.                            designed to be included in C source code for use
  3898.                            as icons and other bit-mapped graphic images.
  3899.  
  3900.           Syntax           --b
  3901.  
  3902.           Extensions       .xbm
  3903.                            .bm
  3904.  
  3905.           Creator          MIT
  3906.  
  3907.           Used by          The X Windowing system
  3908.  
  3909.           Variations       1 bit per pixel
  3910.  
  3911.           Limitations      Because .xbm files are actually C source code
  3912.                            files there can be many variations of .xbm
  3913.                            files.  Since adding a C preprocessor to Alchemy
  3914.                            to handle all the theoretically allowable .xbm
  3915.                            files is impractical we have instead designed
  3916.                            Alchemy to interchange .xbm files with the PBM
  3917.                            utilities and the X supplied utilities, and to
  3918.                            read the sample .xbm files from Sun
  3919.                            Microsystems.  If you run across any .xbm files
  3920.                            which Alchemy can not read please contact us.
  3921.  
  3922.                            The hotspot field is ignored when reading .xbm
  3923.                            files.
  3924.  
  3925.           Comments         Most of the X supplied utilities (bitmap, for
  3926.                            example) are designed to edit small .xbm images.
  3927.  
  3928.  
  3929.  
  3930.           Example          Convert the file picture.im32 to an XBM file
  3931.                            using high quality scaling and preserving the
  3932.                            aspect ratio:
  3933.  
  3934.                                 alchemy --b -Xb64 -+ picture.im32
  3935.  
  3936.  
  3937.  
  3938.  
  3939.  
  3940.  
  3941.  
  3942.  
  3943.  
  3944.  
  3945.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-47
  3946.  
  3947.  
  3948.  
  3949.           XWD                                                           --w
  3950.  
  3951.  
  3952.                            XWD is the file format used by xwd, the X window
  3953.                            dumping utility.
  3954.  
  3955.           Syntax           --w
  3956.  
  3957.           Extension        .xwd
  3958.  
  3959.           Creator          MIT
  3960.  
  3961.           Used by          The X Windowing System
  3962.  
  3963.           Variations       1, 8, and 24 bits per pixel.
  3964.  
  3965.           Limitations      XY format files are not supported.
  3966.  
  3967.           Example          Convert the XBM file, icon.xbm, to an XWD file:
  3968.  
  3969.                                 alchemy icon.xbm --w
  3970.  
  3971.  
  3972.  
  3973.  
  3974.  
  3975.  
  3976.  
  3977.  
  3978.  
  3979.  
  3980.  
  3981.  
  3982.  
  3983.  
  3984.  
  3985.  
  3986.  
  3987.  
  3988.  
  3989.  
  3990.  
  3991.  
  3992.  
  3993.  
  3994.  
  3995.  
  3996.  
  3997.  
  3998.  
  3999.  
  4000.  
  4001.  
  4002.  
  4003.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    3-48
  4004.  
  4005.  
  4006.  
  4007.  
  4008.  
  4009.                                                                           4
  4010.  
  4011.  
  4012.  
  4013.           General Options
  4014.           -----------------------------------------------------------------
  4015.           -----------------------------------------------------------------
  4016.  
  4017.  
  4018.           Introduction     General options are options which do not affect
  4019.                            the conversion of the image.  They control such
  4020.                            things as the overwriting of existing files and
  4021.                            the way that memory is used.
  4022.  
  4023.  
  4024.  
  4025.  
  4026.  
  4027.  
  4028.  
  4029.  
  4030.  
  4031.  
  4032.  
  4033.  
  4034.  
  4035.  
  4036.  
  4037.  
  4038.  
  4039.  
  4040.  
  4041.  
  4042.  
  4043.  
  4044.  
  4045.  
  4046.  
  4047.  
  4048.  
  4049.  
  4050.  
  4051.  
  4052.  
  4053.  
  4054.  
  4055.  
  4056.  
  4057.  
  4058.  
  4059.  
  4060.  
  4061.  
  4062.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     4-1
  4063.  
  4064.  
  4065.  
  4066.           Conserve Memory                                                -$
  4067.  
  4068.  
  4069.           Purpose          Use as little memory as possible when converting
  4070.                            images.
  4071.  
  4072.           Syntax           -$ (dollar sign)
  4073.  
  4074.           Comments         Normally Alchemy tries to work on chunks of the
  4075.                            image several lines long to improve performance.
  4076.                            Use of the -$ option will cause it to use the
  4077.                            smallest size chunks possible for the conversion
  4078.                            being performed.  On MS-DOS based systems this
  4079.                            will usually allow conversion of larger images
  4080.                            than would otherwise be possible.  On Unix
  4081.                            systems this may reduce paging when converting
  4082.                            very large images.
  4083.  
  4084.           Example          Convert the image giant.tga to a 16 colour TIFF
  4085.                            file conserving memory:
  4086.  
  4087.                                 alchemy giant.tga -$ -t -c16
  4088.  
  4089.  
  4090.  
  4091.  
  4092.  
  4093.  
  4094.  
  4095.  
  4096.  
  4097.  
  4098.  
  4099.  
  4100.  
  4101.  
  4102.  
  4103.  
  4104.  
  4105.  
  4106.  
  4107.  
  4108.  
  4109.  
  4110.  
  4111.  
  4112.  
  4113.  
  4114.  
  4115.  
  4116.  
  4117.  
  4118.  
  4119.  
  4120.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     4-2
  4121.  
  4122.  
  4123.  
  4124.           Display Image Stats                                            -x
  4125.  
  4126.  
  4127.           Purpose          Display image statistics.
  4128.  
  4129.           Syntax           -x
  4130.  
  4131.           Comments         Displays image type, size, number of colours,
  4132.                            aspect ratio, resolution, and compression ratio.
  4133.  
  4134.           Limitations      Can not be combined with other options.
  4135.  
  4136.           Example          Find out about the image called image.tga:
  4137.  
  4138.                                 alchemy -x image.tga
  4139.  
  4140.  
  4141.  
  4142.  
  4143.  
  4144.  
  4145.  
  4146.  
  4147.  
  4148.  
  4149.  
  4150.  
  4151.  
  4152.  
  4153.  
  4154.  
  4155.  
  4156.  
  4157.  
  4158.  
  4159.  
  4160.  
  4161.  
  4162.  
  4163.  
  4164.  
  4165.  
  4166.  
  4167.  
  4168.  
  4169.  
  4170.  
  4171.  
  4172.  
  4173.  
  4174.  
  4175.  
  4176.  
  4177.  
  4178.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     4-3
  4179.  
  4180.  
  4181.  
  4182.           Do not alter output filename                                   -.
  4183.  
  4184.  
  4185.           Purpose          Disable automatic appending of the output image
  4186.                            type to the output file name.
  4187.  
  4188.           Syntax           -. (period)
  4189.  
  4190.           Comments         By default, if there's no '.' in the output
  4191.                            filename, Alchemy will add an extension
  4192.                            indicating the type of file.  If the -. option
  4193.                            is specified no extension will be added.
  4194.  
  4195.                            This is most useful on non-MS-DOS systems where
  4196.                            '.' is not a special character in filenames.
  4197.  
  4198.           Example          Convert the file called infile.gif to a PCX file
  4199.                            called outfile (if you did not use the -. option
  4200.                            Alchemy would automatically change the output
  4201.                            file name to outfile.pcx):
  4202.  
  4203.                                 alchemy infile.gif outfile -p -.
  4204.  
  4205.  
  4206.  
  4207.  
  4208.  
  4209.  
  4210.  
  4211.  
  4212.  
  4213.  
  4214.  
  4215.  
  4216.  
  4217.  
  4218.  
  4219.  
  4220.  
  4221.  
  4222.  
  4223.  
  4224.  
  4225.  
  4226.  
  4227.  
  4228.  
  4229.  
  4230.  
  4231.  
  4232.  
  4233.  
  4234.  
  4235.  
  4236.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     4-4
  4237.  
  4238.  
  4239.  
  4240.           Help                                                           -h
  4241.  
  4242.  
  4243.           Purpose          Give you information on how to use Image
  4244.                            Alchemy.
  4245.  
  4246.           Syntax           -h option
  4247.  
  4248.           Parameter        option
  4249.                                 0: general help
  4250.                                 1: general options
  4251.                                 2: output formats a-k
  4252.                                 3: output formats l-z
  4253.                                 4: colour options
  4254.                                 5: scaling options
  4255.                                 6: display options (MS-DOS Only)
  4256.                            Default is 0, general help
  4257.  
  4258.           Comments         The help information given by this command is
  4259.                            only a summary.
  4260.  
  4261.           Limitations      The help option cannot be combined with any
  4262.                            other options.
  4263.  
  4264.           Related options  -?   support and update information
  4265.  
  4266.           Example          Get help on the colour options:
  4267.  
  4268.                                 alchemy -h4
  4269.  
  4270.  
  4271.  
  4272.  
  4273.  
  4274.  
  4275.  
  4276.  
  4277.  
  4278.  
  4279.  
  4280.  
  4281.  
  4282.  
  4283.  
  4284.  
  4285.  
  4286.  
  4287.  
  4288.  
  4289.  
  4290.  
  4291.  
  4292.  
  4293.  
  4294.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     4-5
  4295.  
  4296.  
  4297.  
  4298.           Overwrite                                                      -o
  4299.  
  4300.  
  4301.           Purpose          Force Alchemy to overwrite existing files on the
  4302.                            disk.
  4303.  
  4304.           Syntax           -o
  4305.  
  4306.           Comments         Image Alchemy will not overwrite an existing
  4307.                            file unless the -o option is specified.
  4308.  
  4309.           Limitations      The input file name and the output file name can
  4310.                            not be the same.
  4311.  
  4312.           Example          Convert the file input.tga to a GIF file called
  4313.                            output.gif, overwriting the existing file called
  4314.                            output.gif:
  4315.  
  4316.                                 alchemy input.tga -g output.gif -o
  4317.  
  4318.  
  4319.  
  4320.  
  4321.  
  4322.  
  4323.  
  4324.  
  4325.  
  4326.  
  4327.  
  4328.  
  4329.  
  4330.  
  4331.  
  4332.  
  4333.  
  4334.  
  4335.  
  4336.  
  4337.  
  4338.  
  4339.  
  4340.  
  4341.  
  4342.  
  4343.  
  4344.  
  4345.  
  4346.  
  4347.  
  4348.  
  4349.  
  4350.  
  4351.  
  4352.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     4-6
  4353.  
  4354.  
  4355.  
  4356.           Program information                                            -?
  4357.  
  4358.  
  4359.           Purpose          Give you information on how to get support for
  4360.                            Image Alchemy or inquire about update
  4361.                            information.
  4362.  
  4363.           Syntax           -?
  4364.  
  4365.           Comments         Sun-3 and Sun-4 users have to escape the
  4366.                            question mark with a back-slash (instead of -?
  4367.                            use -\?).  This is because the UNIX shell will
  4368.                            attempt to perform wildcard expansion on the
  4369.                            question mark.
  4370.  
  4371.           Limitations      The information option cannot be combined with
  4372.                            any other options.
  4373.  
  4374.           Related options  -h   help with commands
  4375.  
  4376.           Example          Get support information:
  4377.  
  4378.                                 alchemy -?
  4379.  
  4380.  
  4381.  
  4382.  
  4383.  
  4384.  
  4385.  
  4386.  
  4387.  
  4388.  
  4389.  
  4390.  
  4391.  
  4392.  
  4393.  
  4394.  
  4395.  
  4396.  
  4397.  
  4398.  
  4399.  
  4400.  
  4401.  
  4402.  
  4403.  
  4404.  
  4405.  
  4406.  
  4407.  
  4408.  
  4409.  
  4410.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     4-7
  4411.  
  4412.  
  4413.  
  4414.           Quiet                                                          -Q
  4415.  
  4416.  
  4417.           Purpose          Suppress all status messages (but not error
  4418.                            messages).
  4419.  
  4420.           Syntax           -Q
  4421.  
  4422.           Comments         This is useful when running Alchemy in the
  4423.                            background on Unix systems or in batch files on
  4424.                            MS-DOS systems (and you don't want the output of
  4425.                            Alchemy scrolling important messages off of the
  4426.                            screen).
  4427.  
  4428.           Limitations      There is no way to suppress error messages.
  4429.  
  4430.           Example          Convert the file dummy.gif to a PCX file but
  4431.                            don't report any status messages:
  4432.  
  4433.                                 alchemy -Q dummy.gif -p
  4434.  
  4435.  
  4436.  
  4437.  
  4438.  
  4439.  
  4440.  
  4441.  
  4442.  
  4443.  
  4444.  
  4445.  
  4446.  
  4447.  
  4448.  
  4449.  
  4450.  
  4451.  
  4452.  
  4453.  
  4454.  
  4455.  
  4456.  
  4457.  
  4458.  
  4459.  
  4460.  
  4461.  
  4462.  
  4463.  
  4464.  
  4465.  
  4466.  
  4467.  
  4468.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     4-8
  4469.  
  4470.  
  4471.  
  4472.           Wildcard                                                       --
  4473.  
  4474.  
  4475.           Purpose          Allow the conversion of multiple files with a
  4476.                            single execution of Alchemy.
  4477.  
  4478.           Syntax           -- (dash)
  4479.  
  4480.           Comments         The wildcard option allows you to specify
  4481.                            multiple file names and file names which include
  4482.                            wild card characters.  Alchemy will perform the
  4483.                            same conversion for each input file name that it
  4484.                            finds.
  4485.  
  4486.                            On MS-DOS systems the use of the wildcard option
  4487.                            (--) is not required if the first file name
  4488.                            specified includes a wildcard character (* or
  4489.                            ?); however to reduce confusion it is still
  4490.                            recommended.
  4491.  
  4492.           Limitations      The wildcard option (--) must be specified
  4493.                            before any file names.
  4494.  
  4495.                            If you are using the wildcard option you may not
  4496.                            specify an output file name;  the file names are
  4497.                            automatically generated by substituting an
  4498.                            appropriate extension to the input file names.
  4499.                            If you do specify an output file name it will be
  4500.                            misinterpreted as another input file.  An output
  4501.                            path name may still be specified.
  4502.  
  4503.                            Any error will terminate the execution of
  4504.                            Alchemy; any images which appear in the filename
  4505.                            list after the one causing the error will not be
  4506.                            processed.  This includes attempting to
  4507.                            overwrite an already existing file without
  4508.                            specifying the -o option.
  4509.  
  4510.                            Alchemy does not intelligently retain
  4511.                            information between files.  For example, if you
  4512.                            are matching a group of files to an existing
  4513.                            palette, the inverse palette generation step
  4514.                            only needs to be performed once, but it is in
  4515.                            fact done for each file.  This only affects the
  4516.                            speed of conversions, not the quality.
  4517.  
  4518.  
  4519.           Examples         Convert all the GIF files in the current
  4520.                            directory to JPEG files:
  4521.  
  4522.                                 alchemy  --  *.gif  -j
  4523.  
  4524.  
  4525.  
  4526.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     4-9
  4527.  
  4528.  
  4529.  
  4530.                            Convert all the TIFF files in the directory
  4531.                            \tiff to PCX files in the directory
  4532.                            \images\output:
  4533.  
  4534.                                 alchemy  --  \tiff\*.tif -p \images\output
  4535.  
  4536.                            Convert the files madonna.gif, bay4.gif,
  4537.                            everest.tga, and basil.tif to JPEG files,
  4538.                            overwriting any existing files:
  4539.  
  4540.                                 alchemy  --  -o madonna.gif bay4.gif -j
  4541.                                 everest.tga basil.tif
  4542.  
  4543.                            Convert the files test1.tif, test2.tif, and
  4544.                            new*.gif to ILBM files, matching them to the
  4545.                            palette from the file output.pal:
  4546.  
  4547.                                 alchemy  --  test1.tif test2.tif new*.gif -
  4548.                                 f output.pal -i
  4549.  
  4550.  
  4551.  
  4552.  
  4553.  
  4554.  
  4555.  
  4556.  
  4557.  
  4558.  
  4559.  
  4560.  
  4561.  
  4562.  
  4563.  
  4564.  
  4565.  
  4566.  
  4567.  
  4568.  
  4569.  
  4570.  
  4571.  
  4572.  
  4573.  
  4574.  
  4575.  
  4576.  
  4577.  
  4578.  
  4579.  
  4580.  
  4581.  
  4582.  
  4583.  
  4584.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    4-10
  4585.  
  4586.  
  4587.  
  4588.  
  4589.  
  4590.                                                                           5
  4591.  
  4592.  
  4593.  
  4594.           Colour and Palette Options
  4595.           -----------------------------------------------------------------
  4596.           -----------------------------------------------------------------
  4597.  
  4598.  
  4599.           Introduction     Colour and Palette options are options which
  4600.                            affect the appearance of the output image.  They
  4601.                            control such things as the number of colours in
  4602.                            the output image and the dithering techniques
  4603.                            used.
  4604.  
  4605.  
  4606.  
  4607.  
  4608.  
  4609.  
  4610.  
  4611.  
  4612.  
  4613.  
  4614.  
  4615.  
  4616.  
  4617.  
  4618.  
  4619.  
  4620.  
  4621.  
  4622.  
  4623.  
  4624.  
  4625.  
  4626.  
  4627.  
  4628.  
  4629.  
  4630.  
  4631.  
  4632.  
  4633.  
  4634.  
  4635.  
  4636.  
  4637.  
  4638.  
  4639.  
  4640.  
  4641.  
  4642.  
  4643.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     5-1
  4644.  
  4645.  
  4646.  
  4647.           Black and White                                                -b
  4648.  
  4649.  
  4650.           Purpose          Convert the image to black and white.
  4651.  
  4652.           Syntax           -b
  4653.  
  4654.           Comments         In conjunction with the -b option the -c option
  4655.                            is used to specify the number of shades of gray
  4656.                            in the image.  The default is 256 shades of gray
  4657.                            when converting from a true colour image.  When
  4658.                            converting from a paletted image the number of
  4659.                            shades of gray defaults to the number of colours
  4660.                            in the original image.
  4661.  
  4662.                            The shades of gray are uniformly distributed
  4663.                            from 0 to 255.
  4664.  
  4665.                            When converting from true colour the image will
  4666.                            be changed to a paletted image unless the -24
  4667.                            option is used.
  4668.  
  4669.           Related options  -8   Paletted output
  4670.                            -24  True colour output
  4671.                            -c   Specify number of colours
  4672.  
  4673.           Examples         Convert the file sample.jpg into a 256 shades of
  4674.                            gray raw file:
  4675.  
  4676.                                 alchemy sample.jpg -b -r
  4677.  
  4678.                            Convert the file madonna.jpg into a 4 shades of
  4679.                            gray gif file called gray.gif:
  4680.  
  4681.                                 alchemy -b -c4 -g madonna.gif gray.gif
  4682.  
  4683.  
  4684.  
  4685.  
  4686.  
  4687.  
  4688.  
  4689.  
  4690.  
  4691.  
  4692.  
  4693.  
  4694.  
  4695.  
  4696.  
  4697.  
  4698.  
  4699.  
  4700.  
  4701.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     5-2
  4702.  
  4703.  
  4704.  
  4705.           Colours                                                        -c
  4706.  
  4707.  
  4708.           Purpose          Specify the number of colours for the output
  4709.                            file.
  4710.  
  4711.           Syntax           -c colours [reserveColours]
  4712.  
  4713.           Parameters       colours
  4714.                                 Specifies the number of colours in the
  4715.                            output image.  May be between 2 and 256.
  4716.  
  4717.                            reserveColours
  4718.                                 Specifies the number of colours to reserve
  4719.                            in the output image.  May be between 0 and 255.
  4720.  
  4721.           Comments         If the input file has a larger number of colours
  4722.                            than specified for the output file, the image
  4723.                            will be quantized using Heckbert's median cut
  4724.                            algorithm and dithered.  For further information
  4725.                            on Heckbert's median cut algorithm see Appendix
  4726.                            B, Colour and Dithering.
  4727.  
  4728.                            The number of colours to reserve is an optional
  4729.                            parameter.  If it is present it causes the
  4730.                            specified number of colours to be reserved from
  4731.                            the beginning of the palette.  The output image
  4732.                            will not contain any of those colour indices.
  4733.                            This can be useful if you have menus or other
  4734.                            information you wish to display at the same time
  4735.                            as the images and they use colours at the
  4736.                            beginning of the palette.  The menu colours will
  4737.                            then not interfere with the image.  The first
  4738.                            indices are set to black unless 16 is specified,
  4739.                            in which case they are set to the standard VGA
  4740.                            colour palette.
  4741.  
  4742.           Limitations      Specifying the number of colours only has an
  4743.                            effect if you are writing a paletted file (using
  4744.                            the -8 option) or if the output file type is
  4745.                            always paletted.
  4746.  
  4747.                            Converting an image with a large number of
  4748.                            colours to a small number of colours (less than
  4749.                            8) will usually give poor results.
  4750.  
  4751.                            The reserved colours will be set to black unless
  4752.                            16 colours are reserved.  In that case they will
  4753.                            be set to the standard VGA colours.
  4754.  
  4755.  
  4756.  
  4757.  
  4758.  
  4759.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     5-3
  4760.  
  4761.  
  4762.  
  4763.           Related options  -8   Convert to paletted image
  4764.                            -d   Specify dither type
  4765.                            -u   Use uniform palette
  4766.  
  4767.           Examples         Convert the image colours.gif into a 16 colour
  4768.                            PCX file called colour16.pcx
  4769.  
  4770.                                 alchemy colours.gif -p -c16 colour16.pcx
  4771.  
  4772.                            Convert the image colours.tga into a 256 colour
  4773.                            GIF file called output.gif, reserving the first
  4774.                            16 colours.
  4775.  
  4776.                                 alchemy colours.tga -g -c256 16 output.gif
  4777.  
  4778.  
  4779.  
  4780.  
  4781.  
  4782.  
  4783.  
  4784.  
  4785.  
  4786.  
  4787.  
  4788.  
  4789.  
  4790.  
  4791.  
  4792.  
  4793.  
  4794.  
  4795.  
  4796.  
  4797.  
  4798.  
  4799.  
  4800.  
  4801.  
  4802.  
  4803.  
  4804.  
  4805.  
  4806.  
  4807.  
  4808.  
  4809.  
  4810.  
  4811.  
  4812.  
  4813.  
  4814.  
  4815.  
  4816.  
  4817.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     5-4
  4818.  
  4819.  
  4820.  
  4821.           Dither                                                         -d
  4822.  
  4823.  
  4824.           Purpose          Specifies the type of dithering to apply to the
  4825.                            image.
  4826.  
  4827.           Syntax           -d[s] ditherType [perturbation]
  4828.  
  4829.           Parameters       If the -d is immediately followed by an 's',
  4830.                            then a serpentine raster is used.
  4831.  
  4832.                            ditherType can be:
  4833.                                 0:None
  4834.                                 1:Floyd-Steinberg
  4835.                                 2:Stucki
  4836.                                 3:Jarvis, Judice, & Ninke
  4837.                            The default is Floyd-Steinberg.
  4838.  
  4839.                            perturbation
  4840.                                 0 through 127
  4841.                            The default is 0.
  4842.  
  4843.           Comments         Dithering is used to reduce colour banding in an
  4844.                            image caused by the palette not having a perfect
  4845.                            match for every colour in the image.
  4846.  
  4847.                            Floyd-Steinberg is the fastest supported
  4848.                            dithering algorithm and usually produces the
  4849.                            best results.  Stucki and Jarvis, Judice, &
  4850.                            Ninke both tend to cause an image to appear more
  4851.                            grainy on low resolution output devices (such as
  4852.                            CRTs).  However they produce better results than
  4853.                            Floyd-Steinberg on high-resolution, low colour
  4854.                            output devices such as laser printers.
  4855.  
  4856.                            The -d option only has an effect if the number
  4857.                            of colours is being reduced or the image is
  4858.                            being re-mapped to a new palette.
  4859.  
  4860.                            Specifying a perturbation adds noise to the
  4861.                            threshold used for dithering, which can help
  4862.                            break up visible patterns introduced by
  4863.                            dithering.  The parameter specifies the
  4864.                            magnitude of the noise.
  4865.  
  4866.                            Using a serpentine raster can also help to
  4867.                            reduce visible patterns introduced by dithering.
  4868.  
  4869.                            For further information on dithering see
  4870.                            Appendix B, Colour and Dithering.
  4871.  
  4872.  
  4873.  
  4874.  
  4875.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     5-5
  4876.  
  4877.  
  4878.  
  4879.           Examples         Convert the 256 colour file image.gif to a 16
  4880.                            colour PCX file using a uniform palette and no
  4881.                            dithering:
  4882.  
  4883.                                 alchemy image.gif -p -c16 -d0 -u
  4884.  
  4885.                            Convert the true colour image sample.jpg into a
  4886.                            256 colour GIF file called sample.gif, using
  4887.                            Stucki dithering:
  4888.  
  4889.                                 alchemy -g -d2 sample.jpg
  4890.  
  4891.                            Convert the 256 colour image sample.gif into a
  4892.                            one bit black and white PCL file called
  4893.                            sample.pcl, using Jarvis, Judice, and Ninke
  4894.                            dithering, a serpentine raster, and a little
  4895.                            noise:
  4896.  
  4897.                                 alchemy -P -b -c2  -ds3 20 sample.gif
  4898.  
  4899.  
  4900.  
  4901.  
  4902.  
  4903.  
  4904.  
  4905.  
  4906.  
  4907.  
  4908.  
  4909.  
  4910.  
  4911.  
  4912.  
  4913.  
  4914.  
  4915.  
  4916.  
  4917.  
  4918.  
  4919.  
  4920.  
  4921.  
  4922.  
  4923.  
  4924.  
  4925.  
  4926.  
  4927.  
  4928.  
  4929.  
  4930.  
  4931.  
  4932.  
  4933.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     5-6
  4934.  
  4935.  
  4936.  
  4937.           EGA Palette                                                    -E
  4938.  
  4939.  
  4940.           Purpose          Optimize the image quality for display on an EGA
  4941.                            board and monitor.
  4942.  
  4943.           Syntax           -E
  4944.  
  4945.           Comments         If you are converting images to display on an
  4946.                            EGA board and monitor this option will optimize
  4947.                            the image quality.
  4948.  
  4949.                            This option reduces the palette resolution to
  4950.                            two bits and automatically specifies the
  4951.                            following:  -8 -c16 -z0 2 0.
  4952.  
  4953.           Limitations      The number of colours in an EGA palette must be
  4954.                            less than or equal to 16;  the number of colours
  4955.                            defaults to 16 but can be reduced by using the -
  4956.                            c option.
  4957.  
  4958.           Related options  -c   specify number of colours
  4959.  
  4960.           Example          Convert the image dave1.tga into dave1.pcx, a
  4961.                            PCX file with a palette optimized for EGA use:
  4962.  
  4963.                                 alchemy -E -p dave1.tga
  4964.  
  4965.  
  4966.  
  4967.  
  4968.  
  4969.  
  4970.  
  4971.  
  4972.  
  4973.  
  4974.  
  4975.  
  4976.  
  4977.  
  4978.  
  4979.  
  4980.  
  4981.  
  4982.  
  4983.  
  4984.  
  4985.  
  4986.  
  4987.  
  4988.  
  4989.  
  4990.  
  4991.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     5-7
  4992.  
  4993.  
  4994.  
  4995.           False Colour                                                   -F
  4996.  
  4997.  
  4998.           Purpose          False colour an image using the palette from a
  4999.                            file.  The input image will be changed to use
  5000.                            the palette found in the specified filename but
  5001.                            no attempt at picking the best match will be
  5002.                            done.
  5003.  
  5004.           Syntax           -F filename
  5005.  
  5006.           Parameter        filename
  5007.                                 Any valid image type which contains a
  5008.                            palette
  5009.  
  5010.           Comments         This feature can be used to add false colour to
  5011.                            monochrome images.  The output file is not
  5012.                            dithered.  This is only applicable to paletted
  5013.                            input files.
  5014.  
  5015.           Limitations      Can not be combined with spiff -S or match to
  5016.                            palette -f.
  5017.  
  5018.           Example          False colour the file scan.gif using the palette
  5019.                            from the file colorful.pcx, creating the GIF
  5020.                            file new.gif:
  5021.  
  5022.                                 alchemy -F colorful.pcx -g scan.gif new.gif
  5023.  
  5024.  
  5025.  
  5026.  
  5027.  
  5028.  
  5029.  
  5030.  
  5031.  
  5032.  
  5033.  
  5034.  
  5035.  
  5036.  
  5037.  
  5038.  
  5039.  
  5040.  
  5041.  
  5042.  
  5043.  
  5044.  
  5045.  
  5046.  
  5047.  
  5048.  
  5049.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     5-8
  5050.  
  5051.  
  5052.  
  5053.           Match Palette                                                  -f
  5054.  
  5055.  
  5056.           Purpose          Match the output to a palette read from a file.
  5057.                            The input image will be re-mapped to use the
  5058.                            palette found in the specified file.
  5059.  
  5060.           Syntax           -f filename
  5061.  
  5062.           Parameter        filename
  5063.                                 Any valid image type which contains a
  5064.                            palette
  5065.  
  5066.           Comments         Using the -f option will cause the output image
  5067.                            to be dithered (unless you specify no dithering
  5068.                            by using the -d0 option).
  5069.  
  5070.                            The -f option can be useful if you are combining
  5071.                            several images into a collage or want to match
  5072.                            an image to a pre-existing palette.  You can
  5073.                            also create a custom palette from scratch by
  5074.                            using a text editor and creating a .PAL file.
  5075.  
  5076.           Limitations      Cannot be combined with spiff -S or false colour
  5077.                            -F.
  5078.  
  5079.                            The number of colours in the final image will be
  5080.                            equal to the number of colours in the palette
  5081.                            being read in.
  5082.  
  5083.                            The specified file must contain a palette (i.e.
  5084.                            cannot be true colour).
  5085.  
  5086.           Related options  -l   Generate palette file
  5087.                            -F   False colour
  5088.                            -d   Dither
  5089.  
  5090.  
  5091.  
  5092.           Examples         Convert the image bigimage.tif to a pcx file
  5093.                            using the palette from the file standard.pal:
  5094.  
  5095.                                 alchemy bigimage.tif -p -f standard.pal
  5096.  
  5097.                            Convert the image colour.gif to a gif file
  5098.                            called colour2.gif using the palette from the
  5099.                            file newpal.gif:
  5100.  
  5101.                                 alchemy -fnewpal.gif -g colour.gif colour2
  5102.  
  5103.  
  5104.  
  5105.  
  5106.  
  5107.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     5-9
  5108.  
  5109.  
  5110.  
  5111.           Palette                                                        -8
  5112.  
  5113.  
  5114.           Purpose          Force the output image to be paletted.
  5115.  
  5116.           Syntax           -8
  5117.  
  5118.           Comments         This option is -8 because paletted images are
  5119.                            typically 8 bits per pixel.
  5120.  
  5121.                            Alchemy defaults to the -8 option if the input
  5122.                            file is paletted or gray-scale.
  5123.  
  5124.                            Some file formats require files to be paletted;
  5125.                            for those formats the -8 option is assumed.
  5126.                            Some file formats do not have a paletted
  5127.                            variation; in those cases the -8 option will be
  5128.                            ignored if specified.  Some file formats only
  5129.                            allow gray-scale files to be 8 bit; in those
  5130.                            cases Alchemy will ignore the -8 option if the
  5131.                            image being written is not gray-scale.
  5132.  
  5133.                            The actual number of bits per pixel is
  5134.                            determined by the -c option (below).
  5135.  
  5136.                            If the input file is true colour the output file
  5137.                            will be quantized and dithered (see the -c and -
  5138.                            d options below).
  5139.  
  5140.           Related options  -15  True colour output
  5141.                            -16  True colour output
  5142.                            -24  True colour output
  5143.                            -32  True colour output
  5144.                            -c   specify number of colours in image
  5145.                            -d   dither
  5146.  
  5147.           Examples         Convert the JPEG file bigimage.jpg into a
  5148.                            paletted TIFF file with 256 colours:
  5149.  
  5150.                                 alchemy -8 -t bigimage.jpg
  5151.  
  5152.                            Convert the Targa file madonna.tga to a 16
  5153.                            colour PCX file (note that the -8 option is
  5154.                            implied by the use of the    -c16 option):
  5155.  
  5156.                                 alchemy -c16 -p madonna.tga
  5157.  
  5158.  
  5159.  
  5160.  
  5161.  
  5162.  
  5163.  
  5164.  
  5165.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    5-10
  5166.  
  5167.  
  5168.  
  5169.           Palette Selection                                              -z
  5170.  
  5171.  
  5172.           Purpose          Control how the palette is generated.  These
  5173.                            options only have an effect if the palette is
  5174.                            being generated by Alchemy using Heckbert's
  5175.                            median cut algorithm.
  5176.  
  5177.           Syntax           -z sortType [selectionType [swapType] ]
  5178.  
  5179.           Parameters       Sort the image palette.  SortType can be:
  5180.                                 0:None
  5181.                                 1:popularity
  5182.                                 2:luminance (white to black)
  5183.                                 3:rgb
  5184.                                 4:luminance (black to white)
  5185.                            The default is None.
  5186.  
  5187.                            SelectionType can be:
  5188.                                 0:mean
  5189.                                 1:median
  5190.                                 2:corner
  5191.                            The default is mean.
  5192.  
  5193.                            See Appendix B, Colour and Dithering, for an
  5194.                            explanation of these choices.
  5195.  
  5196.                            SwapType can be:
  5197.                                 0:None
  5198.                                 1:IBM (colour 0 is black, 7 is white)
  5199.                                 2:Macintosh (colour 0 is white, 255 is
  5200.                            black)
  5201.                                 3:Sun (colour 0 is white, 1 is black)
  5202.                            The default is based on the file type being
  5203.                            written out (IBM for GIF, Macintosh for Mac
  5204.                            PICT, Sun for Sun Raster, and None for all
  5205.                            others).
  5206.  
  5207.  
  5208.  
  5209.  
  5210.  
  5211.  
  5212.  
  5213.  
  5214.  
  5215.  
  5216.  
  5217.  
  5218.  
  5219.  
  5220.  
  5221.  
  5222.  
  5223.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    5-11
  5224.  
  5225.  
  5226.  
  5227.           Comments         The most common use for this option is to sort
  5228.                            the palette; in this case only a single
  5229.                            parameter is needed.
  5230.  
  5231.                            This option only affects palettes that are
  5232.                            generated by Alchemy.  To sort an existing
  5233.                            palette you can save the image as a true colour
  5234.                            file (such as HSI Raw, by using the -24 -r
  5235.                            options) and then convert that back to a
  5236.                            paletted file, specifying the desired sort type.
  5237.                            In most cases this will not change the image
  5238.                            (other than the palette order); however if the
  5239.                            palette had entries representing colours that
  5240.                            are nearly identical then the image may be
  5241.                            modified.
  5242.  
  5243.           Limitations      Note that it is not possible to specify a
  5244.                            swapType without first specifying both a
  5245.                            sortType and a selectionType.  See Appendix B,
  5246.                            Colour and Dithering, for more information.
  5247.  
  5248.           Example          Convert the file input.tga to a gif filed called
  5249.                            output.gif sorting the colours by luminance,
  5250.                            using the mean of the Heckbert box for the
  5251.                            colour, and moving the colours around so that
  5252.                            the lightest colour is colour 0 and the darkest
  5253.                            colour is colour 1.
  5254.  
  5255.                                 alchemy input.tga -g output.gif -z4 0 3
  5256.  
  5257.  
  5258.  
  5259.  
  5260.  
  5261.  
  5262.  
  5263.  
  5264.  
  5265.  
  5266.  
  5267.  
  5268.  
  5269.  
  5270.  
  5271.  
  5272.  
  5273.  
  5274.  
  5275.  
  5276.  
  5277.  
  5278.  
  5279.  
  5280.  
  5281.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    5-12
  5282.  
  5283.  
  5284.  
  5285.           Spiff                                                          -S
  5286.  
  5287.  
  5288.           Purpose          Enhance the image contrast by stretching the
  5289.                            pixel colour values to the full 0 to 255 range.
  5290.  
  5291.           Syntax           -S
  5292.  
  5293.           Comments         This command can be used if the image you are
  5294.                            converting is shifted in brightness or squished
  5295.                            in contrast.  This can happen if you scan or
  5296.                            digitize a very dark or very bright image.
  5297.  
  5298.           Limitations      The -S option can not be used at the same time
  5299.                            as the -b option when converting from a true
  5300.                            colour image.  A work around is to do the
  5301.                            operation in two steps, converting it to black
  5302.                            and white first and then spiffing the resulting
  5303.                            image.
  5304.  
  5305.                            Using the spiff option at the same time as the
  5306.                            match palette, -f, or false colour, -F, options
  5307.                            is not allowed.  This is because the spiff
  5308.                            option would be performed before the palette is
  5309.                            changed, which would nullify the effects.  A
  5310.                            work around is to do the matching or false
  5311.                            colouring first, and then spiff the resultant
  5312.                            image.
  5313.  
  5314.           Related options  -b   Black and White
  5315.                            -f   Match palette
  5316.                            -F   False colour image
  5317.  
  5318.           Example          Convert the file gloomy.pcx into a PCX file
  5319.                            called better.pcx:
  5320.  
  5321.                                 alchemy gloomy.pcx -S -p better.pcx
  5322.  
  5323.  
  5324.  
  5325.  
  5326.  
  5327.  
  5328.  
  5329.  
  5330.  
  5331.  
  5332.  
  5333.  
  5334.  
  5335.  
  5336.  
  5337.  
  5338.  
  5339.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    5-13
  5340.  
  5341.  
  5342.  
  5343.           True Colour (15 bits)                                         -15
  5344.  
  5345.  
  5346.           Purpose          Force the output image to be true colour, 15
  5347.                            bits (5 bits per component).
  5348.  
  5349.           Syntax           -15
  5350.  
  5351.           Comments         See the True Colour (24 bits) section, below.
  5352.  
  5353.           Related options  -8   Paletted output
  5354.                            -16  True colour output
  5355.                            -24  True colour output
  5356.                            -32  True colour output
  5357.  
  5358.           Example          Convert the GIF file test.gif into an
  5359.                            uncompressed, true colour 15 bit Targa file
  5360.                            called test.tga:
  5361.  
  5362.                                 alchemy test.gif -a0 -15
  5363.  
  5364.  
  5365.  
  5366.  
  5367.  
  5368.  
  5369.  
  5370.  
  5371.  
  5372.  
  5373.  
  5374.  
  5375.  
  5376.  
  5377.  
  5378.  
  5379.  
  5380.  
  5381.  
  5382.  
  5383.  
  5384.  
  5385.  
  5386.  
  5387.  
  5388.  
  5389.  
  5390.  
  5391.  
  5392.  
  5393.  
  5394.  
  5395.  
  5396.  
  5397.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    5-14
  5398.  
  5399.  
  5400.  
  5401.           True Colour (16 bits)                                         -16
  5402.  
  5403.  
  5404.           Purpose          Force the output image to be true colour, 16
  5405.                            bits (5 bits each for red and blue, 6 for
  5406.                            green).
  5407.  
  5408.           Syntax           -16
  5409.  
  5410.           Comments         See the True Colour (24 bits) section, below.
  5411.  
  5412.           Related options  -8   Paletted output
  5413.                            -15  True colour output
  5414.                            -24  True colour output
  5415.                            -32  True colour output
  5416.  
  5417.           Example          Convert the GIF file test.gif into an
  5418.                            uncompressed, true colour 16 bit Targa file
  5419.                            called test.tga:
  5420.  
  5421.                                 alchemy test.gif -a0 -16
  5422.  
  5423.  
  5424.  
  5425.  
  5426.  
  5427.  
  5428.  
  5429.  
  5430.  
  5431.  
  5432.  
  5433.  
  5434.  
  5435.  
  5436.  
  5437.  
  5438.  
  5439.  
  5440.  
  5441.  
  5442.  
  5443.  
  5444.  
  5445.  
  5446.  
  5447.  
  5448.  
  5449.  
  5450.  
  5451.  
  5452.  
  5453.  
  5454.  
  5455.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    5-15
  5456.  
  5457.  
  5458.  
  5459.           True Colour (24 bits)                                         -24
  5460.  
  5461.  
  5462.           Purpose          Force the output image to be true colour (not
  5463.                            paletted).
  5464.  
  5465.           Syntax           -24
  5466.  
  5467.           Comments         This option is -24 because true colour images
  5468.                            are typically 24 bits per pixel.
  5469.  
  5470.                            Some file formats require files to be true
  5471.                            colour; for those formats the -24 option is
  5472.                            assumed.  Some file formats only have a paletted
  5473.                            variation; in those cases the -24 option will be
  5474.                            ignored if specified.
  5475.  
  5476.                            The file formats which may be either true colour
  5477.                            or paletted default to true colour if the input
  5478.                            file is true colour.
  5479.  
  5480.                            Certain file formats may only be paletted if the
  5481.                            images are gray-scale, in those cases Alchemy
  5482.                            will automatically switch to true colour if the
  5483.                            output image is colour.
  5484.  
  5485.                            Converting a paletted image to true colour will
  5486.                            not improve its quality or change its
  5487.                            appearance.  The primary use of this option is
  5488.                            to force an image to be true colour when
  5489.                            converting to a format which allows either
  5490.                            paletted or true colour, but where the paletted
  5491.                            variation is not well supported (like the Targa
  5492.                            image format).
  5493.  
  5494.           Related options  -8   Paletted output
  5495.  
  5496.           Example          Convert the GIF file test.gif into an
  5497.                            uncompressed, true colour Targa file called
  5498.                            test.tga:
  5499.  
  5500.                                 alchemy test.gif -a0 -24
  5501.  
  5502.  
  5503.  
  5504.  
  5505.  
  5506.  
  5507.  
  5508.  
  5509.  
  5510.  
  5511.  
  5512.  
  5513.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    5-16
  5514.  
  5515.  
  5516.  
  5517.           True Colour (32 bits)                                         -32
  5518.  
  5519.  
  5520.           Purpose          Force the output image to be true colour, 32
  5521.                            bits (8 bits per component, 8 bits for alpha).
  5522.  
  5523.           Syntax           -32
  5524.  
  5525.           Comments         See the True Colour (24 bits) section, above.
  5526.  
  5527.           Related options  -8   Paletted output
  5528.                            -15  True colour output
  5529.                            -16  True colour output
  5530.                            -24  True colour output
  5531.  
  5532.           Example          Convert the GIF file test.gif into an
  5533.                            uncompressed, true colour 32 bit Targa file
  5534.                            called test.tga (the alpha channel will be
  5535.                            empty):
  5536.  
  5537.                                 alchemy test.gif -a0 -32
  5538.  
  5539.  
  5540.  
  5541.  
  5542.  
  5543.  
  5544.  
  5545.  
  5546.  
  5547.  
  5548.  
  5549.  
  5550.  
  5551.  
  5552.  
  5553.  
  5554.  
  5555.  
  5556.  
  5557.  
  5558.  
  5559.  
  5560.  
  5561.  
  5562.  
  5563.  
  5564.  
  5565.  
  5566.  
  5567.  
  5568.  
  5569.  
  5570.  
  5571.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    5-17
  5572.  
  5573.  
  5574.  
  5575.           Undercolour Removal                                            -C
  5576.  
  5577.  
  5578.           Purpose          Control the undercolour removal process, colour
  5579.                            correction, and density correction for output
  5580.                            formats which use the CMYK colour space.
  5581.  
  5582.           Syntax           -C filename
  5583.  
  5584.           Parameter        filename
  5585.                                 The name of the file which contains the
  5586.                            undercolour removal information
  5587.  
  5588.           Comments         The undercolour removal portion of the file is
  5589.                            compatible with the format used by Stork
  5590.                            Colorproofing B.V.  The format of this file is
  5591.                            described in Appendix G, Undercolour Removal
  5592.                            Files.
  5593.  
  5594.                            Sample undercolour removal files can be found in
  5595.                            the samples directory on the Alchemy
  5596.                            distribution disk or tape.
  5597.  
  5598.           Example          Convert the file image.tga to an HP RTL file
  5599.                            called image.rtl using the undercolour removal
  5600.                            file sample.ucr:
  5601.  
  5602.                                 alchemy image.tga --r4 -Csample.ucr
  5603.  
  5604.  
  5605.  
  5606.  
  5607.  
  5608.  
  5609.  
  5610.  
  5611.  
  5612.  
  5613.  
  5614.  
  5615.  
  5616.  
  5617.  
  5618.  
  5619.  
  5620.  
  5621.  
  5622.  
  5623.  
  5624.  
  5625.  
  5626.  
  5627.  
  5628.  
  5629.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    5-18
  5630.  
  5631.  
  5632.  
  5633.           Uniform Palette                                                -u
  5634.  
  5635.  
  5636.           Purpose          Use a Uniform Palette.
  5637.  
  5638.           Syntax           -u
  5639.  
  5640.           Comments         Instead of using the Heckbert median cut
  5641.                            algorithm to generate a custom palette for the
  5642.                            image, use a palette with entries which are
  5643.                            evenly distributed in the RGB colour cube.
  5644.  
  5645.                            The advantage of using a uniform palette is that
  5646.                            it's faster than generating a custom palette.
  5647.                            However, this is at the expense of image quality
  5648.                            since the palette isn't generated based on image
  5649.                            content.
  5650.  
  5651.                            When just viewing a true colour image on a
  5652.                            paletted display a uniform palette is used.
  5653.  
  5654.                            The -c option can be used in conjunction with -u
  5655.                            to specify the size of the uniform palette; in
  5656.                            that case Alchemy will generate a palette with
  5657.                            not more than the specified number of colours
  5658.                            (but not less than 8).
  5659.  
  5660.           Limitations      The palette size will not necessarily match the
  5661.                            specified size, as the actual size must be the
  5662.                            product of three integers.  Alchemy picks
  5663.                            integers that roughly correspond to the
  5664.                            sensitivity of the human eye to red, green, and
  5665.                            blue (30%, 59%, and 11%).
  5666.  
  5667.           Related options  -c   Specify number of colours
  5668.                            -d   Dither type
  5669.  
  5670.           Examples         Convert the file many.tga to a gif file using a
  5671.                            256 colour uniform palette:
  5672.  
  5673.                                 alchemy many.tga -g -u
  5674.  
  5675.                            Convert the file many.tga to a gif file with up
  5676.                            to 128 colours in a uniform palette:
  5677.  
  5678.                                 alchemy many.tga -g -u -c128
  5679.  
  5680.  
  5681.  
  5682.  
  5683.  
  5684.  
  5685.  
  5686.  
  5687.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.    5-19
  5688.  
  5689.  
  5690.  
  5691.  
  5692.  
  5693.                                                                           6
  5694.  
  5695.  
  5696.  
  5697.           Scaling Options
  5698.           -----------------------------------------------------------------
  5699.           -----------------------------------------------------------------
  5700.  
  5701.  
  5702.           Introduction     These options are all related to image scaling.
  5703.                            Note that the -D option does not actually change
  5704.                            the size of the image, it specifies an aspect
  5705.                            ratio or image resolution to be placed in the
  5706.                            header of the output image.
  5707.  
  5708.  
  5709.  
  5710.  
  5711.  
  5712.  
  5713.  
  5714.  
  5715.  
  5716.  
  5717.  
  5718.  
  5719.  
  5720.  
  5721.  
  5722.  
  5723.  
  5724.  
  5725.  
  5726.  
  5727.  
  5728.  
  5729.  
  5730.  
  5731.  
  5732.  
  5733.  
  5734.  
  5735.  
  5736.  
  5737.  
  5738.  
  5739.  
  5740.  
  5741.  
  5742.  
  5743.  
  5744.  
  5745.  
  5746.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     6-1
  5747.  
  5748.  
  5749.  
  5750.           Preserve Aspect Ratio                                          -+
  5751.  
  5752.  
  5753.           Purpose          Preserve aspect ratio when scaling.
  5754.  
  5755.           Syntax           -+ (plus)
  5756.  
  5757.           Comments         If specified with either the -X or -Y option
  5758.                            Alchemy will choose the other dimension to
  5759.                            preserve the aspect ratio of the image.
  5760.  
  5761.                            If specified in conjunction with both -X and -Y
  5762.                            Alchemy will use the values specified as a
  5763.                            bounding box, reducing one dimension if
  5764.                            necessary to preserve the image aspect ratio.
  5765.  
  5766.           Limitations      Does not pay attention to the pixel aspect ratio
  5767.                            values in the input image.
  5768.  
  5769.           Related options  -X   Scale image in horizontal dimension
  5770.                            -Y   Scale image in vertical dimension
  5771.  
  5772.           Examples         Change the size of the image toobig.gif so that
  5773.                            the width is 640 and the height is the correct
  5774.                            number to preserve the aspect ratio of the image
  5775.                            (the new image will be called notbig.gif):
  5776.  
  5777.                                 alchemy -X640 -+ toobig.gif -g notbig
  5778.  
  5779.                            Do the same thing but guarantee that the image
  5780.                            will not be larger than 640 by 480:
  5781.  
  5782.                                 alchemy -X640 -Y480 -+ toobig.gif -g notbig
  5783.  
  5784.  
  5785.  
  5786.  
  5787.  
  5788.                            Do the same thing but use better quality
  5789.                            scaling:
  5790.  
  5791.                                 alchemy -Xb640 -Yb480 -+ toobig.gif -g
  5792.                                 notbig
  5793.  
  5794.  
  5795.  
  5796.  
  5797.  
  5798.  
  5799.  
  5800.  
  5801.  
  5802.  
  5803.  
  5804.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     6-2
  5805.  
  5806.  
  5807.  
  5808.           Scale Image in Horizontal Direction                            -X
  5809.  
  5810.  
  5811.           Purpose          Scale the horizontal dimension of the image to
  5812.                            the specified number of pixels.
  5813.  
  5814.           Syntax           -X[scaleType] pixels
  5815.  
  5816.           Parameters       scaleType
  5817.                                 The type of scaling to use:
  5818.                                    a: nearest neighbor
  5819.                                    b: averaging/linear interpolation
  5820.                                    c: lanczos2
  5821.                                    d: lanczos3
  5822.                                 scaleType is optional; the default is
  5823.                            nearest neighbor.  The higher the scale type the
  5824.                            higher the quality (and the longer the
  5825.                            processing time).
  5826.  
  5827.                            pixels
  5828.                                 The number of pixels in the output image in
  5829.                            the horizontal dimension.
  5830.  
  5831.           Comments         Nearest neighbor type scaling is faster than the
  5832.                            other types but introduces aliasing (which
  5833.                            reduces image quality).  The highest quality
  5834.                            scaling supported is lanczos3, but it takes much
  5835.                            longer than averaging/linear interpolation and
  5836.                            generally doesn't produce significantly better
  5837.                            results.
  5838.  
  5839.           Limitations      All of the scale types other than nearest
  5840.                            neighbor give much better results than nearest
  5841.                            neighbor scaling, but they are slower and
  5842.                            require a new palette to be generated for
  5843.                            paletted output files (you can force alchemy to
  5844.                            use the original palette by using the -f option
  5845.                            and specifying the original image as the palette
  5846.                            file).
  5847.  
  5848.           Related options  -Y   Scale in vertical dimension
  5849.                            -+   Preserve aspect ratio
  5850.  
  5851.           Examples         Scale the input image, test.gif, to 640 by 480
  5852.                            using good quality scaling, calling the output
  5853.                            file test2.gif:
  5854.  
  5855.                                 alchemy test.gif -Xb640 -Yb480 -g test2.gif
  5856.  
  5857.  
  5858.  
  5859.  
  5860.  
  5861.  
  5862.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     6-3
  5863.  
  5864.  
  5865.  
  5866.                            Scale the input image, big.tga, using fast
  5867.                            scaling to an image which is 320 pixels across
  5868.                            and the same aspect ratio as the input image,
  5869.                            calling the output file out.tga:
  5870.  
  5871.                                 alchemy big.tga -X320 -+ -a out
  5872.  
  5873.                            Scale the input image, oddsize.gif, using the
  5874.                            highest quality scaling, to an image which is no
  5875.                            larger than 640x480, but has the same aspect
  5876.                            ratio as the original image, calling the output
  5877.                            image new.gif:
  5878.  
  5879.                                 alchemy oddsize.gif -Yd480 -Xd640 -+
  5880.                                 new.gif -g
  5881.  
  5882.                            Do the same thing as the previous example, but
  5883.                            retain the same palette:
  5884.  
  5885.                                 alchemy oddsize.gif -Yd480 -Xd640 -+
  5886.                                 new.gif -g -f oddsize.gif
  5887.  
  5888.  
  5889.  
  5890.  
  5891.  
  5892.  
  5893.  
  5894.  
  5895.  
  5896.  
  5897.  
  5898.  
  5899.  
  5900.  
  5901.  
  5902.  
  5903.  
  5904.  
  5905.  
  5906.  
  5907.  
  5908.  
  5909.  
  5910.  
  5911.  
  5912.  
  5913.  
  5914.  
  5915.  
  5916.  
  5917.  
  5918.  
  5919.  
  5920.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     6-4
  5921.  
  5922.  
  5923.  
  5924.           Scale Image in Vertical Direction                              -Y
  5925.  
  5926.  
  5927.           Purpose          Scale the vertical dimension of the image to the
  5928.                            specified number of pixels.
  5929.  
  5930.           Syntax           -Y[scaleType] pixels
  5931.  
  5932.           Parameters       ScaleType
  5933.                                 The type of scaling to use:
  5934.                                    a: nearest neighbor
  5935.                                    b: averaging/linear interpolation
  5936.                                    c: lanczos2
  5937.                                    d: lanczos3
  5938.                                 The default is nearest neighbor.
  5939.  
  5940.                            pixels
  5941.                                 The number of pixels in the vertical
  5942.                            dimension.
  5943.  
  5944.           Comments         Nearest neighbor type scaling is faster than the
  5945.                            other types but introduces aliasing.  The
  5946.                            highest quality scaling supported is lanczos3,
  5947.                            but it takes much longer than averaging/linear
  5948.                            interpolation and generally doesn't produce
  5949.                            significantly better results.
  5950.  
  5951.           Limitations      All of the scale types other than nearest
  5952.                            neighbor give much better results than nearest
  5953.                            neighbor scaling, but they are slower and
  5954.                            require a new palette to be generated for
  5955.                            paletted output files (you can force alchemy to
  5956.                            use the original palette by using the -f option
  5957.                            and specifying the original file name).
  5958.  
  5959.           Related options  -X   Scale in vertical dimension
  5960.                            -+   Preserve aspect ratio
  5961.  
  5962.           Examples         See the -X option, Scale Image in Horizontal
  5963.                            Direction, for examples.
  5964.  
  5965.  
  5966.  
  5967.  
  5968.  
  5969.  
  5970.  
  5971.  
  5972.  
  5973.  
  5974.  
  5975.  
  5976.  
  5977.  
  5978.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     6-5
  5979.  
  5980.  
  5981.  
  5982.           Specify Image Aspect Ratio                                     -D
  5983.  
  5984.  
  5985.           Purpose          Specify aspect ratio for the output image.
  5986.  
  5987.           Syntax           -D aspectRatio
  5988.  
  5989.           Parameter        aspectRatio
  5990.                                 The percentage of the width of a pixel to
  5991.                            its height.
  5992.  
  5993.           Comments         This option does not actually change the aspect
  5994.                            ratio of the image, it just adds the aspect
  5995.                            ratio value to the output file.  This is
  5996.                            important when trying to export the image to
  5997.                            software which expects this information.
  5998.  
  5999.                            The aspect ratio of an image is the ratio of the
  6000.                            width of a single pixel to the height of a
  6001.                            single pixel.  (So to specify an aspect ratio of
  6002.                            5:6 use -D 83, since (5/6)*100 is 83).
  6003.  
  6004.                            Alchemy attempts to preserve the aspect ratio
  6005.                            value when converting images whenever one is
  6006.                            found in the input image, but since so few file
  6007.                            formats have aspect ratio information this
  6008.                            hardly ever happens.
  6009.  
  6010.                            This option can also be used when displaying an
  6011.                            image on an IBM PC.
  6012.  
  6013.           Limitations      It is not possible to specify both an aspect
  6014.                            ratio and a dots per inch value for an image.
  6015.                            This is because specifying a dots per inch value
  6016.                            automatically implies an aspect ratio.
  6017.  
  6018.                            Many file types do not have an aspect ratio
  6019.                            value, so specifying one will have no effect.
  6020.  
  6021.           Related options  -D   Specify resolution
  6022.  
  6023.           Examples         You are converting a 640x350 IBM EGA PCX image
  6024.                            called ega.pcx (which has an aspect ratio of
  6025.                            35:48) to a TIFF image and you want the TIFF
  6026.                            image to have the correct aspect ratio value (so
  6027.                            that an intelligent TIFF reader will correctly
  6028.                            interpret the image) (Note that the value of 73
  6029.                            is (35/48)*100):
  6030.  
  6031.                                 alchemy ega.pcx -D 73 -t
  6032.  
  6033.  
  6034.  
  6035.  
  6036.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     6-6
  6037.  
  6038.  
  6039.  
  6040.                            The resulting image will still be 640x350, but
  6041.                            the TIFF file now contains the information that
  6042.                            the pixels are not square (and in fact are
  6043.                            35:48).
  6044.  
  6045.                            If you had instead wanted to convert the image
  6046.                            to a 640 by 480 image (with square pixels) you
  6047.                            could have used:
  6048.  
  6049.                                 alchemy ega.pcx -Y480 -D100 -t
  6050.  
  6051.                            The -D option isn't really needed here, since
  6052.                            any software reading the TIFF file will assume
  6053.                            that if there is no aspect ratio specified the
  6054.                            pixels are square.
  6055.  
  6056.  
  6057.  
  6058.  
  6059.  
  6060.  
  6061.  
  6062.  
  6063.  
  6064.  
  6065.  
  6066.  
  6067.  
  6068.  
  6069.  
  6070.  
  6071.  
  6072.  
  6073.  
  6074.  
  6075.  
  6076.  
  6077.  
  6078.  
  6079.  
  6080.  
  6081.  
  6082.  
  6083.  
  6084.  
  6085.  
  6086.  
  6087.  
  6088.  
  6089.  
  6090.  
  6091.  
  6092.  
  6093.  
  6094.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     6-7
  6095.  
  6096.  
  6097.  
  6098.           Specify Image Resolution                                       -D
  6099.  
  6100.  
  6101.           Purpose          Specify image resolution in dots per inch for
  6102.                            the output image.
  6103.  
  6104.           Syntax           -D dotsPerInchX dotsPerInchY
  6105.  
  6106.           Parameters       dotsPerInchX
  6107.                                 The resolution of the image in the X
  6108.                            direction in dots per inch.
  6109.  
  6110.                            dotsPerInchY
  6111.                                 The resolution of the image in the Y
  6112.                            direction in dots per inch.
  6113.  
  6114.           Comments         You must specify both dotsPerInchX and
  6115.                            dotsPerInchY, even if they are the same.
  6116.  
  6117.                            This command does not actually change the
  6118.                            resolution of the image, it just adds the
  6119.                            resolution fields to the output image.  This is
  6120.                            important when trying to import the image into
  6121.                            software which expects this information.  For
  6122.                            example, Microsoft Word is much more likely to
  6123.                            give the expected results when importing a TIFF
  6124.                            image for printing on a laser printer if the
  6125.                            image has a resolution of 300 dpi.
  6126.  
  6127.                            Reasonable values to use for dotsPerInch include
  6128.                            72 (the resolution of a 13 inch monitor
  6129.                            displaying 640x480) and 300 (the resolution of a
  6130.                            laser printer).
  6131.  
  6132.                            Alchemy will preserve this information when
  6133.                            converting files whenever possible.
  6134.  
  6135.  
  6136.  
  6137.           Limitations      It is not possible to specify both an aspect
  6138.                            ratio and a dots per inch value for an image.
  6139.                            This is because specifying a dots per inch value
  6140.                            automatically implies an aspect ratio.
  6141.  
  6142.                            This option is ignored when writing a file
  6143.                            format which does not have image resolution.
  6144.  
  6145.           Related options  -D   Specify aspect ratio
  6146.  
  6147.  
  6148.  
  6149.  
  6150.  
  6151.  
  6152.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     6-8
  6153.  
  6154.  
  6155.  
  6156.           Example          Convert the Targa file input.tga to a TIFF file
  6157.                            called output.tif, specifying that the
  6158.                            resolution of the image in the TIFF file is 300
  6159.                            dpi by 300 dpi:
  6160.  
  6161.                                 alchemy -t input.tga -D 300 300 output
  6162.  
  6163.                            Convert the file scan.tif to a DCX variation of
  6164.                            a PCX file, scaling the output image to 1500 by
  6165.                            750 (preserving the images aspect ratio) and
  6166.                            setting the resolution to 200dpi by 100dpi (this
  6167.                            is useful if you will be faxing the image using
  6168.                            a fax card):
  6169.  
  6170.                                 alchemy scan.tif -p1 -X1500 -Y750 -+
  6171.                                 -D 200 100
  6172.  
  6173.  
  6174.  
  6175.  
  6176.  
  6177.  
  6178.  
  6179.  
  6180.  
  6181.  
  6182.  
  6183.  
  6184.  
  6185.  
  6186.  
  6187.  
  6188.  
  6189.  
  6190.  
  6191.  
  6192.  
  6193.  
  6194.  
  6195.  
  6196.  
  6197.  
  6198.  
  6199.  
  6200.  
  6201.  
  6202.  
  6203.  
  6204.  
  6205.  
  6206.  
  6207.  
  6208.  
  6209.  
  6210.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     6-9
  6211.  
  6212.  
  6213.  
  6214.  
  6215.  
  6216.                                                                           7
  6217.  
  6218.  
  6219.  
  6220.           Viewing Options
  6221.  
  6222.  
  6223.           MS-DOS Only
  6224.           -----------------------------------------------------------------
  6225.           -----------------------------------------------------------------
  6226.  
  6227.  
  6228.           Display hardware On properly equipped MS-DOS based computers
  6229.                            Image Alchemy can display images.
  6230.  
  6231.                            Depending on the hardware installed Alchemy
  6232.                            supports 320x200x256, 360x480x256, 640x400x256,
  6233.                            640x480x256, 800x600x256, 1024x768x256,
  6234.                            1280x1024x256, 640x480x32768, and 800x600x32768
  6235.                            display resolutions (the exact resolutions
  6236.                            supported depend on the model board installed).
  6237.  
  6238.                            Alchemy automatically detects which type of
  6239.                            display board you have installed.  If there are
  6240.                            multiple display boards installed in one
  6241.                            computer then Alchemy will display images on the
  6242.                            first board it finds,  searching in the
  6243.                            following order:
  6244.  
  6245.                               Western Digital based 8514/A board
  6246.  
  6247.                               AI compatible 8514/A board
  6248.  
  6249.                               VESA compatible SVGA board
  6250.  
  6251.                               Other SVGA board.
  6252.  
  6253.  
  6254.  
  6255.           Western Digital  8514/A boards which are equipped with the
  6256.                    8514/A  Western Digital chipset are automatically
  6257.                            recognized by Alchemy.  Depending on the model
  6258.                            board and the amount of memory installed,
  6259.                            640x480x256, 1024x768x256, and 1280x1024x256
  6260.                            modes are available.
  6261.  
  6262.  
  6263.  
  6264.  
  6265.  
  6266.  
  6267.  
  6268.  
  6269.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     7-1
  6270.  
  6271.  
  6272.  
  6273.                 AI 8514/A  Alchemy requires AI to be installed to use
  6274.                            8514/A displays which aren't based on the
  6275.                            Western Digital chipset.  In addition to 8514/A
  6276.                            boards Alchemy should also be able to display on
  6277.                            other AI compatible boards, such as 340x0 based
  6278.                            boards; however this has not been tested.  For
  6279.                            AI based boards the only resolution available is
  6280.                            1024x768x256
  6281.  
  6282.                      VESA  The best support for SVGA boards is available
  6283.                            for VESA compatible SVGA boards.  VESA is a SVGA
  6284.                            standard which allows applications software,
  6285.                            such as Image Alchemy, to interrogate the SVGA
  6286.                            board to determine which display modes are
  6287.                            available.  Some SVGA boards have VESA support
  6288.                            built directly into the BIOS found on the board;
  6289.                            in this case Alchemy will automatically detect
  6290.                            the VESA driver and use it.  Other SVGA boards
  6291.                            require a software driver to be installed;
  6292.                            these drivers are usually found on the floppy
  6293.                            disks which came with your SVGA board (typically
  6294.                            the driver is called VESA.EXE).  If you can't
  6295.                            find a driver on the diskettes and the
  6296.                            documentation does not explicitly mention that
  6297.                            VESA support is built into the BIOS you might
  6298.                            call the manufacturer to see if a VESA driver is
  6299.                            available.  VESA drivers are currently available
  6300.                            for VGA boards using chipsets from Cirrus Logic,
  6301.                            ATI Technologies, Chips and Technologies, Everex
  6302.                            Systems, Genoa Systems, Paradise Logic, Sigma
  6303.                            Designs, STB Systems, Tecmar, Headland
  6304.                            Technology (Video 7), Orchid Technology, Appian
  6305.                            Technology, Trident Microsystems, and Oak
  6306.                            Technology.
  6307.  
  6308.                Other SVGA  If Alchemy cannot find a VESA SVGA board it
  6309.                            attempts to determine what kind of SVGA board is
  6310.                            present.
  6311.  
  6312.                            The 320x200x256 mode is a standard IBM VGA mode
  6313.                            and will work on all VGA boards.  The
  6314.                            360x480x256 is a non-standard VGA mode which
  6315.                            should also work on all VGA boards.
  6316.  
  6317.                            Because of various incompatibilities between
  6318.                            different VGA boards 640x400x256 and/or
  6319.                            640x480x256 modes are not supported on some VGA
  6320.                            boards.  VGA boards which have been tested for
  6321.                            the higher resolution modes include Paradise,
  6322.                            Tseng Labs 3000 & 4000, Video 7, Trident, and
  6323.                            Everex chipset based VGA Boards.
  6324.  
  6325.  
  6326.  
  6327.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     7-2
  6328.  
  6329.  
  6330.  
  6331.           General          Unless you explicitly specify a resolution
  6332.                            Alchemy automatically uses the lowest resolution
  6333.                            mode which will display the entire picture.
  6334.  
  6335.                            The image will be positioned so that its center
  6336.                            coincides with that of the display.
  6337.  
  6338.  
  6339.  
  6340.  
  6341.  
  6342.  
  6343.  
  6344.  
  6345.  
  6346.  
  6347.  
  6348.  
  6349.  
  6350.  
  6351.  
  6352.  
  6353.  
  6354.  
  6355.  
  6356.  
  6357.  
  6358.  
  6359.  
  6360.  
  6361.  
  6362.  
  6363.  
  6364.  
  6365.  
  6366.  
  6367.  
  6368.  
  6369.  
  6370.  
  6371.  
  6372.  
  6373.  
  6374.  
  6375.  
  6376.  
  6377.  
  6378.  
  6379.  
  6380.  
  6381.  
  6382.  
  6383.  
  6384.  
  6385.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     7-3
  6386.  
  6387.  
  6388.  
  6389.           View Image                                                     -v
  6390.  
  6391.  
  6392.           Purpose          View file.
  6393.  
  6394.           Syntax           -v horizontalResolution
  6395.  
  6396.           Parameter        horizontalResolution
  6397.                                 320:Use 320x200 mode
  6398.                                 360:Use 360x480 mode
  6399.                                 640:Use 640x480 mode
  6400.                                 800:Use 800x600 mode
  6401.                                 1024:Use 1024x768 mode
  6402.                                 1280:Use 1280x1024 mode
  6403.  
  6404.           Comments         If displaying on a Western Digital chipset
  6405.                            8514/A or VESA compatible VGA, an optional
  6406.                            parameter may follow the -v command.  This
  6407.                            parameter specifies horizontal resolution and
  6408.                            may be 320, 360, 640, 800, 1024, or 1280.  The
  6409.                            default is to use the lowest resolution which
  6410.                            can fit the entire image.
  6411.  
  6412.                            If the image is true colour, a uniform palette
  6413.                            will be used and the image will be dithered
  6414.                            (dithering may be disabled by use of the -d
  6415.                            option, see above).  See Appendix B, Colour and
  6416.                            Dithering, for more information.
  6417.  
  6418.           Related options  -V   Reduce image to fit display
  6419.  
  6420.           Example          View the image madonna.gif:
  6421.  
  6422.                                 alchemy madonna.gif -v
  6423.  
  6424.  
  6425.  
  6426.  
  6427.  
  6428.  
  6429.  
  6430.  
  6431.  
  6432.  
  6433.  
  6434.  
  6435.  
  6436.  
  6437.  
  6438.  
  6439.  
  6440.  
  6441.  
  6442.  
  6443.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     7-4
  6444.  
  6445.  
  6446.  
  6447.           View Image in 15 Bit Mode                                     --v
  6448.  
  6449.  
  6450.           Purpose          View file using 15 bits/pixel mode.  This allows
  6451.                            true colour images to be viewed without
  6452.                            dithering to a uniform palette.
  6453.  
  6454.           Syntax           --v horizontalResolution
  6455.  
  6456.           Parameter        horizontalResolution
  6457.                                 640:Use 640x480 mode
  6458.                                 800:Use 800x600 mode
  6459.  
  6460.           Comments         Only works on a Tseng 4000 equipped SVGA board
  6461.                            with a Sierra DAC and 1 Megabyte of memory on
  6462.                            the SVGA board.
  6463.  
  6464.           Example          View madonna.tga:
  6465.  
  6466.                                 alchemy madonna.tga --v
  6467.  
  6468.  
  6469.  
  6470.  
  6471.  
  6472.  
  6473.  
  6474.  
  6475.  
  6476.  
  6477.  
  6478.  
  6479.  
  6480.  
  6481.  
  6482.  
  6483.  
  6484.  
  6485.  
  6486.  
  6487.  
  6488.  
  6489.  
  6490.  
  6491.  
  6492.  
  6493.  
  6494.  
  6495.  
  6496.  
  6497.  
  6498.  
  6499.  
  6500.  
  6501.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     7-5
  6502.  
  6503.  
  6504.  
  6505.           View Scaled Image                                              -V
  6506.  
  6507.  
  6508.           Purpose          View image while scaling image to fit on monitor
  6509.                            and correcting aspect ratio.
  6510.  
  6511.           Syntax           -V horizontalResolution
  6512.  
  6513.           Parameter        horizontalResolution
  6514.                                 320:Use 320x200 mode
  6515.                                 360:Use 360x480 mode
  6516.                                 640:Use 640x480 mode
  6517.                                 800:Use 800x600 mode
  6518.                                 1024:Use 1024x768 mode
  6519.                                 1280:Use 1280x1024 mode
  6520.  
  6521.           Comments         This command will scale the image and correct
  6522.                            the aspect ratio of the image by removing rows
  6523.                            and/or columns from the image.
  6524.  
  6525.                            Note that this option can also be useful for
  6526.                            displaying images which are not larger than the
  6527.                            screen but which have an aspect ratio different
  6528.                            than the display.
  6529.  
  6530.           Limitations      Alchemy assumes that the aspect ratio of a
  6531.                            display pixel is 1:1 when in 640x480, 800x600,
  6532.                            1024x768, and 1280x1024 modes, 5:6 when in
  6533.                            640x400 mode and 320x200 modes, and 16:9 in
  6534.                            360x480 mode.
  6535.  
  6536.                            If not otherwise specified by using the -D
  6537.                            option or in the file, Alchemy assumes that the
  6538.                            aspect ratio of pixels in 640x400 images and
  6539.                            320x200 images is 5:6 and the aspect ratio of
  6540.                            pixels in 640x350 images is 35:48.  You can
  6541.                            override any of these assumptions with the -D
  6542.                            option.
  6543.  
  6544.                            Don't worry if this is confusing;  in practice
  6545.                            Alchemy deals with everything automatically if
  6546.                            you use the -V option.  However, there is a
  6547.                            problem with displaying 320x400 IFF files; see
  6548.                            Appendix A, Answers to Frequently Asked
  6549.                            Questions, for more information.
  6550.  
  6551.           Related options  -D   Specify image resolution
  6552.                            -v   View image
  6553.  
  6554.           Example          View madonna.gif:
  6555.  
  6556.                                 alchemy madonna.gif -V
  6557.  
  6558.  
  6559.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     7-6
  6560.  
  6561.  
  6562.  
  6563.  
  6564.  
  6565.                                                                           A
  6566.  
  6567.  
  6568.  
  6569.           Answers to Frequently Asked Questions
  6570.           -----------------------------------------------------------------
  6571.           -----------------------------------------------------------------
  6572.  
  6573.  
  6574.  
  6575.                   Question When I view a JPEG compressed image on my VGA
  6576.                            board it looks much worse than when I first
  6577.                            convert it to a GIF file and then view it.  Why
  6578.                            is this?
  6579.  
  6580.                     Answer To save time Alchemy automatically uses a
  6581.                            uniform palette when you are just viewing a true
  6582.                            colour image.  When converting to a different
  6583.                            file format Alchemy uses Heckbert quantization
  6584.                            to generate a palette.  The difference in image
  6585.                            quality is the difference between using a
  6586.                            uniform palette and an optimum palette.  See
  6587.                            Appendix B, Colour and Dithering, for more
  6588.                            information on palette generation.
  6589.  
  6590.  
  6591.                   Question Why can't my paint package read the Targa file I
  6592.                            wrote with Image Alchemy?
  6593.  
  6594.                     Answer Some software which reads Targa files can not
  6595.                            handle compressed files.  In addition, some
  6596.                            software can read true colour Targa files, but
  6597.                            can not read paletted or gray-scale files.
  6598.                            Image Alchemy can be forced to write out a true
  6599.                            colour file by using the -24 option.
  6600.  
  6601.  
  6602.                   Question I told Alchemy to convert a PCX file to an 8 bit
  6603.                            GIF file (using the -8 option).  Yet when I get
  6604.                            statistics on the file (using -x) Alchemy
  6605.                            reports the file only has 16 colours.
  6606.  
  6607.                     Answer Alchemy will always store the file using the
  6608.                            smallest bits-per-pixel allowable for the given
  6609.                            image (this results in the smallest possible
  6610.                            file).  In this case the input file only had 16
  6611.                            colours in it.
  6612.  
  6613.  
  6614.  
  6615.  
  6616.  
  6617.  
  6618.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     A-1
  6619.  
  6620.  
  6621.  
  6622.                            Things get more unpredictable with formats such
  6623.                            as Sun Raster (which requires 1 bit files to be
  6624.                            black and white) and SGI (which requires 8 bit
  6625.                            files to be gray-scale).  In these cases Alchemy
  6626.                            will always do the best it can (giving you a
  6627.                            warning message if it does something which may
  6628.                            surprise you later).
  6629.  
  6630.  
  6631.                   Question Why is decompressing or compressing a JPEG image
  6632.                            so slow?
  6633.  
  6634.                     Answer There are a large number of calculations that
  6635.                            have to be done during JPEG compression.  This
  6636.                            is an inherent limitation of JPEG compression.
  6637.                            Image Alchemy has been optimized quite a bit to
  6638.                            reduce the number of calculations, and we are
  6639.                            working to further reduce the number of
  6640.                            calculations.  If you are transferring files
  6641.                            over modems or storing them on slow media (tape)
  6642.                            the compression times are usually more than made
  6643.                            up for by the decrease in transmission or
  6644.                            retrieval times.
  6645.  
  6646.  
  6647.                   Question Why can't my favorite desktop publishing package
  6648.                            read the TIFF file I wrote with Image Alchemy?
  6649.  
  6650.                     Answer TIFF is an extremely versatile standard; it can
  6651.                            handle anything from 1 bit images to full colour
  6652.                            images with an alpha channel.  Also, TIFF allows
  6653.                            many different types of compression.
  6654.                            Unfortunately this versatility means that it's
  6655.                            difficult for a single piece of software to be
  6656.                            able to read in every valid TIFF file.
  6657.  
  6658.                            If the software specifies the classes of TIFF it
  6659.                            can read, you can force Alchemy to write out a
  6660.                            specific TIFF class by using the following
  6661.                            options:
  6662.                               class B: -8 -b -c2 -t2
  6663.                               class G: -8 -b -t1
  6664.                               class P: -8 -t1
  6665.                               class R: -24 -t1
  6666.  
  6667.                            Class B is black and white, Class G is gray-
  6668.                            scale, Class P is paletted, and Class R is true
  6669.                            colour.
  6670.  
  6671.  
  6672.  
  6673.  
  6674.  
  6675.  
  6676.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     A-2
  6677.  
  6678.  
  6679.  
  6680.                            If the supported classes are not specified
  6681.                            experiment with various combinations of -24, -8,
  6682.                            -b, and -c.  In this case it is usually best to
  6683.                            use no compression (-t0) while experimenting
  6684.                            with the other options, as many TIFF readers
  6685.                            have difficulty with compressed files.  When you
  6686.                            find a set of options that work, then you can
  6687.                            try various compression modes to save space.  Be
  6688.                            aware that using the -b option will force the
  6689.                            output file to be gray-scale and you will lose
  6690.                            the colour information in the file (most DTP
  6691.                            programs only have support for gray-scale TIFF
  6692.                            files).
  6693.  
  6694.                            You may also have to use the -Dn n option to
  6695.                            specify the resolution of the image (this is
  6696.                            especially true when converting from a file
  6697.                            format which does not have a value for image
  6698.                            resolution).  You can generally tell if this is
  6699.                            necessary because the program you are using to
  6700.                            read in the TIFF file will claim that the file
  6701.                            is unreasonably large or small.  Generally, if
  6702.                            you are using a 300 DPI Laser Printer you want
  6703.                            to make the TIFF file 300DPI x 300DPI (-
  6704.                            D 300 300).
  6705.  
  6706.                            If you would like further information specific
  6707.                            to using Image Alchemy with your word processor
  6708.                            or desktop publishing program please contact us;
  6709.                            we will be maintaining a list of how to make
  6710.                            Alchemy work with other software packages.
  6711.                            Similarly if you figure out how to import files
  6712.                            into a specific package let us know and we will
  6713.                            add your tips to our documentation.
  6714.  
  6715.  
  6716.  
  6717.  
  6718.  
  6719.  
  6720.  
  6721.  
  6722.  
  6723.  
  6724.  
  6725.  
  6726.  
  6727.  
  6728.  
  6729.  
  6730.  
  6731.  
  6732.  
  6733.  
  6734.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     A-3
  6735.  
  6736.  
  6737.  
  6738.                   Question I've converted a Mac PICT file to a GIF file,
  6739.                            but the GIF file is missing some or all of the
  6740.                            information that was in the PICT file.  What
  6741.                            happened to it?
  6742.  
  6743.                     Answer PICT files are a combination of drawing commands
  6744.                            (such as lines, rectangles, and circles) and
  6745.                            raster areas (called pixMaps).  Alchemy can only
  6746.                            read the raster portions of the files.  Programs
  6747.                            such as MacDraw and MacDraft write out files
  6748.                            with drawing commands, programs such as MacPaint
  6749.                            write out files which are entirely raster areas
  6750.                            (pixMaps), and some programs, such as SuperPaint
  6751.                            can write out files which are either or a
  6752.                            combination of both.  If you are using such a
  6753.                            program check the documentation on how to write
  6754.                            out files in "paint" mode.
  6755.  
  6756.  
  6757.                   Question When I convert a GIF file to a JPEG file and
  6758.                            then back to a GIF file the final GIF file is
  6759.                            twice the size of the original.  Why is this?
  6760.  
  6761.                     Answer There are two things which might cause this to
  6762.                            happen:
  6763.  
  6764.                            JPEG compression doesn't really work well for
  6765.                            images which have large areas which are all the
  6766.                            same colour.  The reason for this is that JPEG
  6767.                            is a lossy compression technique.  Therefore you
  6768.                            are not going to get back exactly the same
  6769.                            values for each pixel in an area that was one
  6770.                            solid colour before being JPEG compressed.  But
  6771.                            GIF compression works much better on areas which
  6772.                            are one solid colour, so, when you GIF compress
  6773.                            these areas, they are quite a bit larger than
  6774.                            they were before.  The solution to this problem
  6775.                            is to use HSI JPEG compression, which
  6776.                            automatically detects large areas of solid
  6777.                            colours and does not JPEG compress them.  The
  6778.                            problem with HSI JPEG compression is that it
  6779.                            isn't compatible with JPEG or JFIF.
  6780.  
  6781.  
  6782.  
  6783.  
  6784.  
  6785.  
  6786.  
  6787.  
  6788.  
  6789.  
  6790.  
  6791.  
  6792.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     A-4
  6793.  
  6794.  
  6795.  
  6796.                            The other possibility is that the input GIF file
  6797.                            didn't have very many different colours.  When
  6798.                            you converted it to a JPEG file the number of
  6799.                            colours in the file was lost (JPEG gray-scale
  6800.                            files always use 256 shades, and JPEG colour
  6801.                            files are always true colour).  When the JPEG
  6802.                            file was converted back to a GIF file Alchemy
  6803.                            assumed you wanted 256 colours in the file, and
  6804.                            a 256 colour GIF file is bigger than a 16 colour
  6805.                            GIF file.  To prevent this you can use a -c32
  6806.                            (or however many colours the original had)
  6807.                            option in the command line; this forces Image
  6808.                            Alchemy to use that many colours for the output
  6809.                            file.
  6810.  
  6811.  
  6812.                   Question I keep getting "Out of Memory trying to ..."
  6813.                            messages.  Help!
  6814.  
  6815.                     Answer Image Alchemy is running out of memory.  First
  6816.                            try to do the conversion again with the -$
  6817.                            (conserve memory) option.  Next, if that doesn't
  6818.                            help, attempt to maximize the amount of memory
  6819.                            available by removing as many memory resident
  6820.                            programs as you can.  If this still doesn't help
  6821.                            please contact us with the following
  6822.                            information: your computer configuration (amount
  6823.                            of available memory, size of hard disk),
  6824.                            operating system version, and what you are
  6825.                            trying to do (input file information (size of
  6826.                            image and type of file) and options specified).
  6827.                            Alchemy can generally convert images as larger
  6828.                            than 2000 pixels wide and a virtually unlimited
  6829.                            number of pixels tall.  However there are
  6830.                            certain conversions which require more memory
  6831.                            than others.
  6832.  
  6833.  
  6834.                   Question I am using Alchemy to display a 320x400 IFF
  6835.                            image created by an Amiga.  When I use just the
  6836.                            -v option the image comes out tall and skinny.
  6837.                            When I use the -V option, which is supposed to
  6838.                            correct the aspect ratio, things get worse
  6839.                            instead of better (the image is even skinnier).
  6840.                            What's going on?
  6841.  
  6842.                     Answer As near as we can tell, some Amiga software has
  6843.                            a different idea of what aspect ratio is than
  6844.                            the rest of the world.
  6845.  
  6846.  
  6847.  
  6848.  
  6849.  
  6850.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     A-5
  6851.  
  6852.  
  6853.  
  6854.                            For displays aspect ratio is defined as the
  6855.                            ratio of the width of a single pixel to the
  6856.                            height of a single pixel.  So if you have square
  6857.                            pixels (which you do on a standard monitor in
  6858.                            640x480 mode) the aspect ratio is 1 to 1
  6859.                            (commonly written as 1:1).  When you change
  6860.                            display modes the height and width of the total
  6861.                            display area does not change; what is changing
  6862.                            is the width and height of each pixel, which
  6863.                            means that the aspect ratio changes.  For
  6864.                            example, a 640x400 display has an aspect ratio
  6865.                            of 1:1.2 (that means each pixel is 1.2 times as
  6866.                            tall as it is wide (which makes sense since
  6867.                            480/400 equals 1.2)).  A 640x200 display
  6868.                            (remember IBM CGA graphics mode?) has an aspect
  6869.                            ratio of 1:2.4.
  6870.  
  6871.                            Now this is where it gets interesting in terms
  6872.                            of IFF files.  The aspect ratio number stored in
  6873.                            Amiga IFF files for 320x400 images is 1:1.1,
  6874.                            meaning pixels are 1.1 times as tall as they are
  6875.                            wide, so therefore the actual image should be
  6876.                            the equivalent size of a 320x440 image with
  6877.                            square pixels.  And this is what Alchemy will
  6878.                            attempt to display when you use the -V option
  6879.                            (Alchemy never makes any dimension larger, so
  6880.                            the actual image Alchemy displays is 291x400,
  6881.                            which is the same ratio as 320x440).  However
  6882.                            this is obviously wrong, as you can tell when
  6883.                            you examine an image.  As near as we can tell
  6884.                            the correct aspect ratio of these images is 5:3
  6885.                            (the math we used to come up with this number is
  6886.                            640/320:480/400).  And if you tell Alchemy to
  6887.                            override the aspect ratio by using a -D 167
  6888.                            option (167 because 5/3*100 is 166.6666) the
  6889.                            image displays correctly.  Why Amigas create
  6890.                            images which claim they are 1:1.1 remains a
  6891.                            mystery.
  6892.  
  6893.  
  6894.  
  6895.  
  6896.  
  6897.  
  6898.  
  6899.  
  6900.  
  6901.  
  6902.  
  6903.  
  6904.  
  6905.  
  6906.  
  6907.  
  6908.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     A-6
  6909.  
  6910.  
  6911.  
  6912.                   Question When I convert a 32 bit Targa file to a GIF file
  6913.                            and then to a JPEG file it doesn't look nearly
  6914.                            as good as if I convert the Targa File directly
  6915.                            to the JPEG file.  What can I do to maintain
  6916.                            high quality in JPEG compressed files?
  6917.  
  6918.                     Answer When the Targa file was converted to the GIF
  6919.                            file Image Alchemy had to reduce the number of
  6920.                            colours in the file (the original Targa File had
  6921.                            up to 16 million colours, GIF files are limited
  6922.                            to 256 colours).  This step is known as colour
  6923.                            quantization (Image Alchemy uses the Heckbert
  6924.                            Median Cut method for quantization, see Appendix
  6925.                            B, Colour and Dithering, for more information).
  6926.                            The difficulty with colour quantization is that
  6927.                            it leaves artifacts known as colour banding.  To
  6928.                            reduce this phenomenon Image Alchemy dithers the
  6929.                            image (you can see the effect of colour banding
  6930.                            by turning off dithering by using the -d0
  6931.                            option).  Unfortunately a dithered image does
  6932.                            not JPEG compress very well (dithering adds a
  6933.                            lot of high-frequency information to an image;
  6934.                            JPEG compression attempts to remove much of that
  6935.                            information).  In addition JPEG images are
  6936.                            always continuous colour images, so when the
  6937.                            JPEG file is decompressed it has to be colour
  6938.                            quantized and dithered again.  Dithering a
  6939.                            previously dithered image reduces the quality
  6940.                            even more.  The solution is to use the best
  6941.                            starting quality you can for JPEG compression,
  6942.                            ideally a continuous tone image.  The compressed
  6943.                            image size will be smaller than if you had
  6944.                            started with a paletted image and the quality
  6945.                            will be better.
  6946.  
  6947.  
  6948.                   Question I've converted an HP PCL file to a GIF file, but
  6949.                            the GIF file is missing some or all of the
  6950.                            information that was in the PCL file.  What
  6951.                            happened to it?
  6952.  
  6953.                     Answer PCL files have the same problem as PICT files
  6954.                            (see above); they are a combination of drawing
  6955.                            commands (such as lines and rectangles) and
  6956.                            raster areas (called rasters) and Alchemy can
  6957.                            only convert the raster areas in PCL files.  PCL
  6958.                            Files also contain font and text information,
  6959.                            which is also lost.  Unfortunately there isn't
  6960.                            any general way to preserve this data with
  6961.                            Alchemy.
  6962.  
  6963.  
  6964.  
  6965.  
  6966.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     A-7
  6967.  
  6968.  
  6969.  
  6970.                            One thing which you can do if running Microsoft
  6971.                            Windows 3.0 is to install Adobe Type Manager
  6972.                            (ATM).  ATM automatically intercepts any text
  6973.                            commands and converts them to rasters.  In
  6974.                            addition, the standard Windows 3.0 HP PCL driver
  6975.                            only generates rasters, not vectors.  So the
  6976.                            file will appear in its entirety when converted
  6977.                            by Alchemy.  Contact us if you want further
  6978.                            information on using Alchemy with Windows 3.0.
  6979.  
  6980.  
  6981.                   Question Why can't Image Alchemy read in JPEG files
  6982.                            produced by Kodak's ColorSqueeze (or Sun's
  6983.                            VFCtool)?
  6984.  
  6985.                     Answer The JPEG standard is still in draft form.  Until
  6986.                            it is a mature standard, various manufacturer's
  6987.                            will implement different versions of it.  As of
  6988.                            March 1, 1991 Image Alchemy supports the JFIF
  6989.                            format and should work with any other JPEG
  6990.                            software which also claims JFIF compatibility.
  6991.                            If other software you are using claims to
  6992.                            support the JFIF format and you are having
  6993.                            trouble please contact us.  If the other
  6994.                            software does not support JFIF, contact the
  6995.                            manufacturer and tell them they should send you
  6996.                            an update which does (you can tell them to
  6997.                            contact us if they need a copy of the JFIF
  6998.                            standard).
  6999.  
  7000.  
  7001.                   Question I converted a PCX file with 16 colours to a 16
  7002.                            shades of gray TIFF file using the -b and -t
  7003.                            options.  The 16 colour PCX file had some shades
  7004.                            of gray in it which were changed in the TIFF
  7005.                            file.  How can I prevent this?
  7006.  
  7007.                     Answer The problem is that gray-scale TIFF files have a
  7008.                            uniformly spaced gray palette.  If you create a
  7009.                            TIFF file with 16 shades of gray it will have
  7010.                            the following shades in it: 0, 17, 34, 51, 68,
  7011.                            85, 102, 119, 136, 153, 170, 187, 204, 221, 238,
  7012.                            and 255.  However the 16 colour PCX file you
  7013.                            started with probably didn't have those exact
  7014.                            colours in it (for example, PCX files written
  7015.                            out by Windows 3.0 Paint have shades of gray
  7016.                            which correspond to 0, 128, 192, and 255).  So
  7017.                            Alchemy did the best it could and matched the
  7018.                            input colours to the output colours (and
  7019.                            depending on the other options that you
  7020.                            specified may also have dithered the image).
  7021.  
  7022.  
  7023.  
  7024.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     A-8
  7025.  
  7026.  
  7027.  
  7028.                            The solution is to tell Alchemy to write out a
  7029.                            256 colour gray-scale TIFF file (which you do by
  7030.                            adding a -c256 to the -b and -t options).  This
  7031.                            file still has a uniform gray palette; but that
  7032.                            palette now contains every colour:  0, 1, 2, 3,
  7033.                            ..., 255.  Therefore Alchemy can map, for
  7034.                            example, the colours 128 and 192 to their exact
  7035.                            match.  This does have the disadvantage of
  7036.                            making the resulting 256 colour TIFF file twice
  7037.                            as large as the 16 colour TIFF file, but this is
  7038.                            the only way to guarantee that Alchemy can find
  7039.                            an exact match for all the shades of gray in the
  7040.                            input file.
  7041.  
  7042.  
  7043.                   Question Why do you only allow specifying image
  7044.                            resolution in Dots Per Inch?  Don't you realize
  7045.                            that most of the world is metric?
  7046.  
  7047.                     Answer Yes, we do realize that the entire world, with
  7048.                            the exception of the United States and Great
  7049.                            Britain, claims to use the metric system
  7050.                            exclusively (and Great Britain will presumably
  7051.                            change in 1992).  However, this isn't actually
  7052.                            true.  A laser printer manufactured in Japan is
  7053.                            still 300 dots per inch (not 11.811... dots per
  7054.                            mm) and a 19 inch monitor sold in Europe is
  7055.                            called a 19 inch monitor (actually a 19 inch
  7056.                            monitor is called a 20 inch monitor in Europe,
  7057.                            which is a measure of the total picture tube
  7058.                            diagonal, not just the viewing area).
  7059.  
  7060.  
  7061.  
  7062.  
  7063.  
  7064.  
  7065.  
  7066.  
  7067.  
  7068.  
  7069.  
  7070.  
  7071.  
  7072.  
  7073.  
  7074.  
  7075.  
  7076.  
  7077.  
  7078.  
  7079.  
  7080.  
  7081.  
  7082.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     A-9
  7083.  
  7084.  
  7085.  
  7086.  
  7087.  
  7088.                                                                           B
  7089.  
  7090.  
  7091.  
  7092.           Colour and Dithering
  7093.           -----------------------------------------------------------------
  7094.           -----------------------------------------------------------------
  7095.  
  7096.  
  7097.           Paletted vs.     Colour images are normally stored in one of two
  7098.           true colour      ways: as an array of direct colour values
  7099.                            (usually red, green, and blue) (referred to as a
  7100.                            true colour file in this document) or as an
  7101.                            array of indices into a colour-map which
  7102.                            contains red, green, and blue colour values
  7103.                            (referred to as a paletted file in this
  7104.                            document).
  7105.  
  7106.                            The reason for the existence of paletted images
  7107.                            is that they take less memory, so the hardware
  7108.                            to display them is less expensive.  The
  7109.                            dominance of paletted hardware is changing as
  7110.                            the price of memory and the processing power it
  7111.                            takes to update large amounts of memory at a
  7112.                            reasonable speed drops (a Targa 32 board is an
  7113.                            example of a true colour board, a VGA board is
  7114.                            an example of a paletted board).
  7115.  
  7116.                            Until true colour graphics devices become the
  7117.                            norm there's a need to convert images from true
  7118.                            colour to paletted.  This conversion is done in
  7119.                            two steps: the first is to generate a palette
  7120.                            for use by the image;  the second is to map the
  7121.                            image to the new palette.
  7122.  
  7123.           Colour cube      The colour model generally used by computers is
  7124.                            a cube with red, green, and blue as the axes
  7125.                            (this is known as a colour cube or RGB cube).
  7126.                            Each point inside the cube is a different
  7127.                            colour, depending on the amount of red, green,
  7128.                            and blue used.  In nature each of the three axes
  7129.                            is nearly continuous, therefore there are a
  7130.                            nearly infinite number of colours available.
  7131.                            Computer hardware and software represent colours
  7132.                            in a discrete fashion.
  7133.  
  7134.  
  7135.  
  7136.  
  7137.  
  7138.  
  7139.  
  7140.  
  7141.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     B-1
  7142.  
  7143.  
  7144.  
  7145.                            For true colour displays or file formats the
  7146.                            number of discrete positions along each axis of
  7147.                            the colour cube gives the colour resolution of
  7148.                            the output device.  For example, a Targa 24
  7149.                            board for an IBM PC has 8 bits per red, green,
  7150.                            and blue channel for a total of 24 bits (or 256
  7151.                            discrete shades of each colour, for a total of
  7152.                            16 million colours (256x256x256)).  This is also
  7153.                            the colour resolution of most true colour file
  7154.                            formats.
  7155.  
  7156.                            The new 15 bit SVGA boards have 5 bits per
  7157.                            channel, for a total of 32x32x32 different
  7158.                            colours (32,768).  This is the same colour
  7159.                            resolution as a Targa 15 file.
  7160.  
  7161.                            A paletted display or image file has the same
  7162.                            colour resolution limit as a true colour display
  7163.                            or image file, but in addition there is a limit
  7164.                            on how many points inside the cube can be used
  7165.                            at the same time.  An 8 bit file format, such as
  7166.                            GIF, allows 256 different colours out of 16
  7167.                            million.  A normal SVGA board also only allows
  7168.                            256 different colours at one time.
  7169.  
  7170.                            So, converting a true colour file to a paletted
  7171.                            file involves reducing the number of occupied
  7172.                            points in the colour cube.  There are several
  7173.                            ways this can be done.
  7174.  
  7175.  
  7176.           Generating a     Image Alchemy supports two methods of generating
  7177.           palette          a palette:
  7178.  
  7179.                   Uniform  The simplest and fastest method is to use a
  7180.                  palettes  palette containing colours which are uniformly
  7181.                            distributed in the RGB cube, referred to as a
  7182.                            uniform palette.  This has the advantage that
  7183.                            it's fast and the same palette can be used for
  7184.                            any image; the primary disadvantage is that most
  7185.                            images don't contain colours from everywhere in
  7186.                            the RGB cube, so palette entries are wasted
  7187.                            representing colours that aren't needed for the
  7188.                            particular image being converted.
  7189.  
  7190.  
  7191.  
  7192.  
  7193.  
  7194.  
  7195.  
  7196.  
  7197.  
  7198.  
  7199.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     B-2
  7200.  
  7201.  
  7202.  
  7203.                   Optimal  To generate a palette which is better for
  7204.                  palettes  representing a particular image, Image Alchemy
  7205.                            supports Heckbert's median cut algorithm.  This
  7206.                            algorithm first builds a three dimensional table
  7207.                            (a histogram cube) indicating how popular any
  7208.                            given colour in the RGB cube is in the image
  7209.                            being converted.  It then proceeds to subdivide
  7210.                            this histogram cube (by dividing boxes in half)
  7211.                            until it has created as many boxes as there are
  7212.                            palette entries.  The decision as to where to
  7213.                            divide a box is based on the distribution of
  7214.                            colours within the box.  This algorithm attempts
  7215.                            to create boxes which have approximately equal
  7216.                            popularity in the image.
  7217.  
  7218.                            Palette entries are then assigned to represent
  7219.                            each box.  There are other methods of generating
  7220.                            a palette from an image, but Heckbert's
  7221.                            algorithm is generally regarded as the best
  7222.                            tradeoff between speed and quality.
  7223.  
  7224.  
  7225.             Modifying the  You can change the method used to select a
  7226.                   palette  colour to represent each box by use of the -z
  7227.                 selection  options.
  7228.                   process
  7229.                            The default method is to use the mean of all the
  7230.                            colours in the box.  However for some images
  7231.                            slightly better results can be obtained by using
  7232.                            the center of the box (without regard to where
  7233.                            the pixels are in the box).
  7234.  
  7235.                            For images being reduced to a very small number
  7236.                            of colours (less than 16) better results can be
  7237.                            obtained by using a corner of the box (the boxes
  7238.                            tend to be large when reducing an image to a
  7239.                            small number of colours; therefore picking
  7240.                            colours near the centers of the boxes will give
  7241.                            you muddy colours, while using corners of the
  7242.                            boxes will give you more saturated colours).
  7243.  
  7244.  
  7245.  
  7246.           Mapping the      The next step is to map the image to the new
  7247.           image to the     palette; this is where dithering becomes
  7248.           palette          important.
  7249.  
  7250.  
  7251.  
  7252.  
  7253.  
  7254.  
  7255.  
  7256.  
  7257.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     B-3
  7258.  
  7259.  
  7260.  
  7261.              No dithering  The simplest approach is to map every colour in
  7262.                            the original image to the palette entry which is
  7263.                            closest to it (this is what Image Alchemy does
  7264.                            if you specify no dithering).
  7265.  
  7266.                            However, since the palette entries generally
  7267.                            represent several different colours in the
  7268.                            original image, this results in colour banding
  7269.                            where areas of smooth colour changes in the
  7270.                            original become areas of one solid colour in the
  7271.                            paletted version.
  7272.  
  7273.             Advantages of  This can be alleviated by dithering the image
  7274.                 dithering  data such that any given pixel might not be
  7275.                            mapped to its closest palette entry, but the
  7276.                            average over some area of the image will be
  7277.                            closer to the correct colour than it would
  7278.                            otherwise be.  Image Alchemy uses a class of
  7279.                            algorithms called "error-diffusion" to do
  7280.                            dithering.
  7281.  
  7282.           Error diffusion  These algorithms work by using the closest
  7283.                 dithering  palette entry to a colour and then distributing
  7284.                            the error (the difference between the desired
  7285.                            colour and the chosen palette entry) to the
  7286.                            nearby pixels.  This process is repeated for
  7287.                            every pixel in the image, using the colour
  7288.                            values which have been modified due to the error
  7289.                            from previous pixels.  The different dithering
  7290.                            algorithms spread the error over a different
  7291.                            area or use a different weighting within the
  7292.                            same area.
  7293.  
  7294.                Serpentine  Error diffusion can be done as a normal raster
  7295.                    raster  (left to right, top to bottom) or as a
  7296.                            serpentine raster (alternating left to right and
  7297.                            right to left, top to bottom).  A serpentine
  7298.                            raster tends to break up visible patterns
  7299.                            introduced by dithering.
  7300.  
  7301.                     Noise  Random noise can also be added to help break up
  7302.                            visible patterns in the resulting image.
  7303.  
  7304.  
  7305.           Further          For more information on Heckbert's median cut
  7306.           information      and dithering see the appropriate reference
  7307.                            listed in the References section below.
  7308.  
  7309.  
  7310.  
  7311.  
  7312.  
  7313.  
  7314.  
  7315.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     B-4
  7316.  
  7317.  
  7318.  
  7319.  
  7320.  
  7321.                                                                           C
  7322.  
  7323.  
  7324.  
  7325.           What is JPEG Compression?
  7326.           -----------------------------------------------------------------
  7327.           -----------------------------------------------------------------
  7328.  
  7329.  
  7330.           Who are those    JPEG stands for the "Joint Photographic Experts
  7331.           JPEG guys?       Group".  This is a group of experts who defined
  7332.                            a standard compression scheme for still images,
  7333.                            commonly called JPEG Compression.  Currently the
  7334.                            standard is still in draft form.  The standard
  7335.                            should be finalized in 1991.
  7336.  
  7337.           Overview         JPEG Compression consists of a series of
  7338.                            reasonably complex mathematical operations.
  7339.                            These include: colour space conversion, discrete
  7340.                            cosine transforms, quantization, and entropy
  7341.                            coding.  After these steps you end up with an
  7342.                            image which takes fewer bits to store than you
  7343.                            started out with.
  7344.  
  7345.                            However, when you decompress a JPEG compressed
  7346.                            image you end up with an image that is not quite
  7347.                            the same as the original  (which is why JPEG
  7348.                            Compression is referred to as "lossy").
  7349.  
  7350.           Is lossy         You might well ask why anyone would want to
  7351.           compression bad? compress an image using a lossy technique.
  7352.                            Compression ratios for lossy compression are
  7353.                            much better than for lossless compression and
  7354.                            the loss is generally very small.  And, in fact,
  7355.                            every operation of converting an image is lossy
  7356.                            (the original photographic or electronic process
  7357.                            which captured the image was lossy, scanning or
  7358.                            digitizing the image was lossy, displaying the
  7359.                            image on a monitor is lossy, and printing the
  7360.                            image is lossy).
  7361.  
  7362.  
  7363.           Details          JPEG compression involves the following steps:
  7364.  
  7365.  
  7366.  
  7367.  
  7368.  
  7369.  
  7370.  
  7371.  
  7372.  
  7373.  
  7374.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     C-1
  7375.  
  7376.  
  7377.  
  7378.                    Step 1  The image is converted to a colour space with
  7379.                            separate luminance and chrominance channels.
  7380.                            This is done because the human eye is far more
  7381.                            sensitive to the luminance information (Y) than
  7382.                            it is to the chrominance information (Cb and
  7383.                            Cr); by separating them, it's possible to
  7384.                            compress the chrominance information more than
  7385.                            the luminance before the perceived image quality
  7386.                            suffers.
  7387.  
  7388.                            This step isn't specified in the JPEG draft (it
  7389.                            doesn't discuss colour space at all), but is
  7390.                            standard practice.  Image Alchemy uses CCIR-601
  7391.                            YCbCr, which is the colour space specified by
  7392.                            the JFIF standard.
  7393.  
  7394.                    Step 2  The luminance and chrominance information are
  7395.                            separately transformed to the frequency domain
  7396.                            using a discrete cosine transform acting on 8x8
  7397.                            pixel blocks.
  7398.  
  7399.                            To reduce the amount of data which needs to be
  7400.                            compressed the chrominance information may be
  7401.                            sub-sampled first.  Alchemy uses
  7402.                            2h:1v:1h:1v:1h:1v sub-sampling when writing JPEG
  7403.                            files, which means that the first component
  7404.                            (luminance) has twice as many samples
  7405.                            horizontally as the other two components
  7406.                            (chrominance), and the same number of samples
  7407.                            vertically.  Alchemy can read JPEG files with
  7408.                            any sub-sampling allowed by the draft standard.
  7409.  
  7410.                    Step 3  The transformed data is quantized (so some
  7411.                            information is thrown away).  The samples
  7412.                            representing higher frequencies are generally
  7413.                            quantized using larger steps than those
  7414.                            representing low frequencies.
  7415.  
  7416.                            The quality level you specify is used to scale a
  7417.                            set of quantization values which have been found
  7418.                            to cause the quantized data to all have
  7419.                            approximately equal importance visually.  A
  7420.                            lower quality number will cause larger
  7421.                            quantization steps to be used, and hence
  7422.                            increase the compression ratio and decrease the
  7423.                            image quality.
  7424.  
  7425.  
  7426.  
  7427.  
  7428.  
  7429.  
  7430.  
  7431.  
  7432.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     C-2
  7433.  
  7434.  
  7435.  
  7436.                    Step 4  The quantized data is compressed using an
  7437.                            entropy coder.  Huffman and Arithmetic coding
  7438.                            are allowed by the draft JPEG standard; only
  7439.                            Huffman coding is allowed by the JFIF standard.
  7440.                            Huffman coding can either be done with a set of
  7441.                            fixed tables or custom tables can be generated
  7442.                            for an image.  Alchemy, by default, uses a fixed
  7443.                            set of tables, but can also generate custom
  7444.                            tables which usually produce 5-20% (depending on
  7445.                            the image and quality setting) better
  7446.                            compression.  However, producing custom tables
  7447.                            requires an additional pass over the image data
  7448.                            and therefore takes a little longer.
  7449.  
  7450.  
  7451.           JPEG Interchange This data corresponds to the JPEG Interchange
  7452.           Format           Format and is ready to be stored in a file.
  7453.                            Unfortunately the JPEG Interchange Format does
  7454.                            not include enough information to actually be
  7455.                            able to convert the file back to an image.
  7456.                            Specifically the colour space used and the
  7457.                            aspect ratio or resolution of the image are not
  7458.                            included.  Until recently there was no standard
  7459.                            way of putting this information in a JPEG file.
  7460.  
  7461.           JFIF             On March 1, 1991 representatives of several JPEG
  7462.                            hardware and software developers (including C-
  7463.                            Cube, Radius, NeXT, Storm Tech., the PD JPEG
  7464.                            group, Sun, and Handmade Software) met at C-Cube
  7465.                            and established the JPEG File Interchange Format
  7466.                            (JFIF).  If you would like more information on
  7467.                            the JFIF standard please contact us.
  7468.  
  7469.  
  7470.  
  7471.  
  7472.  
  7473.  
  7474.  
  7475.  
  7476.  
  7477.  
  7478.  
  7479.  
  7480.  
  7481.  
  7482.  
  7483.  
  7484.  
  7485.  
  7486.  
  7487.  
  7488.  
  7489.  
  7490.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     C-3
  7491.  
  7492.  
  7493.  
  7494.  
  7495.  
  7496.                                                                           D
  7497.  
  7498.  
  7499.  
  7500.           Customer Support
  7501.           -----------------------------------------------------------------
  7502.           -----------------------------------------------------------------
  7503.  
  7504.  
  7505.           Why might        We have made every effort to insure that Image
  7506.           Alchemy mess up? Alchemy can read all files in its supported
  7507.                            formats.  However, because of poorly written
  7508.                            standards and non-adherence to standards there
  7509.                            are undoubtedly certain files that Image Alchemy
  7510.                            does not read correctly.
  7511.  
  7512.           What we need to  If you come across any files which Image Alchemy
  7513.           fix the problem  has trouble with please contact us with as much
  7514.                            of the following information as you have:
  7515.                            version of Image Alchemy you are using, type of
  7516.                            file, type of computer which generated it, name
  7517.                            and version of software which wrote the file,
  7518.                            size of image, and the number of colours in
  7519.                            image.  We may ask you to send us the file so
  7520.                            that we can figure out what went wrong.  If you
  7521.                            send us a file we will attempt to modify Image
  7522.                            Alchemy so that it can read the file.  And if by
  7523.                            some miracle we manage to get it to work, we
  7524.                            will send you an updated copy of Image Alchemy.
  7525.  
  7526.                            Similarly, if any files that Image Alchemy
  7527.                            writes can not be read by other software we want
  7528.                            to know that also.  Since we do not own a copy
  7529.                            of every software package we may ask you to send
  7530.                            us a copy of a file that can be read by that
  7531.                            package; we will then compare that to a file
  7532.                            written out by Image Alchemy to determine what
  7533.                            the differences are.
  7534.  
  7535.  
  7536.                            Please contact us even if you are just using a
  7537.                            demo copy of Alchemy.  In addition to helping
  7538.                            fix a potential bug, we feel the best way to get
  7539.                            you to purchase a copy of Alchemy is to
  7540.                            demonstrate how committed we are to customer
  7541.                            support.
  7542.  
  7543.  
  7544.  
  7545.  
  7546.  
  7547.  
  7548.  
  7549.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     D-1
  7550.  
  7551.  
  7552.  
  7553.           How to contact   The best way to contact us is by e-mail; this is
  7554.           us               especially true if you can send us a sample file
  7555.                            which demonstrates the problem.  Our e-mail
  7556.                            addresses are:
  7557.  
  7558.                               Internet:  hsi@netcom.COM
  7559.                               CompuServe:  71330, 3136
  7560.  
  7561.                            We also have a 24 hour bulletin board where you
  7562.                            can upload and download files.  It speaks 2400
  7563.                            baud, 9600 baud (v32, v42, and v42.bis), and PEP
  7564.                            and its number is:
  7565.  
  7566.                               +1 408 356-3297 (BBS)
  7567.  
  7568.                            If you want to contact us through more
  7569.                            pedestrian means our address and phone numbers
  7570.                            are:
  7571.  
  7572.                               Handmade Software, Inc.
  7573.                               15951 Los Gatos Blvd., Suite 17
  7574.                               Los Gatos, CA  95032
  7575.                               
  7576.                               +1 408 358-1292 (Voice)
  7577.                               +1 408 356-4143 (Fax)
  7578.  
  7579.  
  7580.  
  7581.  
  7582.  
  7583.  
  7584.  
  7585.  
  7586.  
  7587.  
  7588.  
  7589.  
  7590.  
  7591.  
  7592.  
  7593.  
  7594.  
  7595.  
  7596.  
  7597.  
  7598.  
  7599.  
  7600.  
  7601.  
  7602.  
  7603.  
  7604.  
  7605.  
  7606.  
  7607.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     D-2
  7608.  
  7609.  
  7610.  
  7611.  
  7612.  
  7613.                                                                           E
  7614.  
  7615.  
  7616.  
  7617.           Binary Information Files (BIF)
  7618.           -----------------------------------------------------------------
  7619.           -----------------------------------------------------------------
  7620.  
  7621.  
  7622.           Overview         Binary files are image files which are just
  7623.                            data.  In other words, they do not contain any
  7624.                            information other than the actual pixels in the
  7625.                            image.  In order to read these files you must
  7626.                            create a file using a text editor which
  7627.                            describes to Alchemy the format of the file you
  7628.                            are trying to read in.  This is called a BIF
  7629.                            file (and normally has the extension .bif).
  7630.  
  7631.           Required         At the minimum a BIF file needs to contain the
  7632.           information      filename of the image file and either the height
  7633.                            or the width of the image.  Alchemy will make
  7634.                            assumptions about the other characteristics of
  7635.                            the image based on the information that it is
  7636.                            given and the total length of the image file.
  7637.  
  7638.  
  7639.           BIF file format  The first line contains the letters BIF, which
  7640.                            identifies the file as a BIF file.
  7641.  
  7642.                            Each of the rest of the lines in the BIF file
  7643.                            consist of an information tag followed by the
  7644.                            information.  The spelling of the tags must be
  7645.                            exact or Alchemy will report an unknown tag
  7646.                            error.
  7647.  
  7648.  
  7649.  
  7650.  
  7651.  
  7652.  
  7653.  
  7654.  
  7655.  
  7656.  
  7657.  
  7658.  
  7659.  
  7660.  
  7661.  
  7662.  
  7663.  
  7664.  
  7665.  
  7666.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     E-1
  7667.  
  7668.  
  7669.  
  7670.           Tags
  7671.  
  7672.                       Tag  Description
  7673.  
  7674.                  filename  The name of the file containing the binary data.
  7675.  
  7676.                     width  The width of the image data, in pixels.
  7677.  
  7678.                    height  The height of the image data, in pixels.
  7679.  
  7680.                    planes  The number of planes of image data (1, 2, 3, or
  7681.                            4).
  7682.                            A 1 plane image is assumed to be gray-scale, a 2
  7683.                            plane image is a gray-scale image with an alpha
  7684.                            channel, a 3 plane image is a RGB image, and a 4
  7685.                            plane image is a RGB image with an alpha
  7686.                            channel.
  7687.  
  7688.                    header  The size of the header, in bytes.  This many
  7689.                            bytes will be skipped when reading the file.
  7690.  
  7691.               leftpadding  The number of bytes to remove from the beginning
  7692.                            of each scan line.
  7693.  
  7694.              rightpadding  The number of bytes to remove from the end of
  7695.                            each scan line.
  7696.  
  7697.                     order  The order of the pixels.
  7698.                            For 3 channel images, this can be any sequence
  7699.                            of r, g, and b: rgb, rbg, grb, gbr, brg, or bgr
  7700.                            (r=red, g=green, b=blue).
  7701.                            For 4 channel images, this can be any sequence
  7702.                            of a, r, g, and b (a=alpha).
  7703.                            Either ga or ag for 2 channel images (g=gray,
  7704.                            a=alpha).
  7705.  
  7706.                            The defaults are g, ga, rgb, and rgba, depending
  7707.                            on the number of planes.
  7708.  
  7709.                upsidedown  The presence of this tag indicates that the data
  7710.                            in the file is recorded from the bottom of the
  7711.                            screen up to the top of the screen.
  7712.  
  7713.  
  7714.  
  7715.           Comments         Lines beginning with a # are treated as
  7716.                            comments.  Comments and blank lines are ignored
  7717.                            when processing the file.
  7718.  
  7719.  
  7720.  
  7721.  
  7722.  
  7723.  
  7724.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     E-2
  7725.  
  7726.  
  7727.  
  7728.           Palette files    If the binary file has a palette available, you
  7729.                            can use that palette by writing custom software
  7730.                            to convert it to a .PAL file and using the -F
  7731.                            option while reading the BIF file.
  7732.  
  7733.           Example          This is an example BIF file which can be used to
  7734.                            read a 640 pixel wide, true colour HSI Raw file.
  7735.                            Note that HSI raw files have a 32 byte header
  7736.                            which is being skipped.  Of course you could
  7737.                            read the Raw file directly using Alchemy, but
  7738.                            this is after all an example of a BIF file.
  7739.  
  7740.                                 BIF
  7741.                                 width    640
  7742.                                 #skip past header
  7743.                                 header    32
  7744.  
  7745.                                 filename  sample.raw
  7746.                                 planes     3
  7747.  
  7748.                                 #the tag below isn't actually needed,
  7749.                                 #since rgb is the default, but is
  7750.                                 #included here to give an example of
  7751.                                 #what an order tag looks like
  7752.  
  7753.                                 order   rgb
  7754.  
  7755.           Using the        Assuming the BIF file is called sample.bif, the
  7756.           example BIF file following Alchemy command can be used to convert
  7757.                            the image to a GIF file:
  7758.  
  7759.                                 alchemy sample.bif -g
  7760.  
  7761.                            The height of the image will be automatically
  7762.                            calculated from the length of the file and the
  7763.                            width, header, and planes tags.
  7764.  
  7765.                            A BIF file is treated as an ordinary file, so
  7766.                            all the standard Alchemy commands may be used.
  7767.  
  7768.  
  7769.  
  7770.  
  7771.  
  7772.  
  7773.  
  7774.  
  7775.  
  7776.  
  7777.  
  7778.  
  7779.  
  7780.  
  7781.  
  7782.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     E-3
  7783.  
  7784.  
  7785.  
  7786.  
  7787.  
  7788.                                                                           F
  7789.  
  7790.  
  7791.  
  7792.           HSI Raw Files
  7793.           -----------------------------------------------------------------
  7794.           -----------------------------------------------------------------
  7795.  
  7796.  
  7797.           History          The HSI Raw format was originally intended as an
  7798.                            internal format to Image Alchemy.  Because of
  7799.                            user demand the format has been documented to
  7800.                            allow others to read and write HSI Raw files.
  7801.  
  7802.           Overview         HSI Raw files are completely uncompressed,
  7803.                            unpacked, and unpadded image data files.
  7804.                            Therefore they tend to be larger than almost any
  7805.                            compressed file format.  However, they have the
  7806.                            advantage, as far as Alchemy is concerned, that
  7807.                            they are very fast to read and write and the
  7808.                            location of any pixel in the image may be found
  7809.                            by simple calculations.
  7810.  
  7811.                            If you need to convert custom files to a format
  7812.                            that Alchemy can read we recommend using a Raw
  7813.                            file; it is the simplest format to write and the
  7814.                            fastest for Alchemy to read.
  7815.  
  7816.           Variations       There are two types of HSI Raw Files:  paletted
  7817.                            and true colour.  Paletted images are stored one
  7818.                            byte per pixel with a palette at the beginning
  7819.                            of the file.  True colour files are stored three
  7820.                            bytes per pixel.
  7821.  
  7822.                Gray-scale  Gray scale files are stored as paletted files
  7823.                            with a palette that contains all gray values.
  7824.                            Alchemy automatically recognizes such files
  7825.                            during reading and will treat them
  7826.                            appropriately.
  7827.  
  7828.           Black and white  Black and White files are stored as paletted
  7829.                            files with a palette that contains two values,
  7830.                            black and white.  Alchemy automatically
  7831.                            recognizes such files during reading and will
  7832.                            treat them appropriately.
  7833.  
  7834.  
  7835.  
  7836.  
  7837.  
  7838.  
  7839.  
  7840.  
  7841.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     F-1
  7842.  
  7843.  
  7844.  
  7845.           Warning          Note that Handmade Software, Inc. reserves the
  7846.                            right to make changes to this format at any time
  7847.                            and without notice.  And while it is unlikely,
  7848.                            it is possible that future versions of Image
  7849.                            Alchemy will not support this format.
  7850.  
  7851.           Old version      This appendix describes version 4 Raw files.
  7852.           files            This is the version that Image Alchemy has
  7853.                            written since March 1991.  Before this Alchemy
  7854.                            wrote version 2 and 3 raw files (version 2 were
  7855.                            8 bit files, version 3 were 24 bit files).
  7856.                            Those raw files can be read by current versions
  7857.                            of Image Alchemy but are not otherwise
  7858.                            supported.  If you run across any of these raw
  7859.                            files the easiest thing to do is to use a
  7860.                            current copy of Alchemy to convert them to a
  7861.                            version 4 raw file.
  7862.  
  7863.  
  7864.  
  7865.           Details
  7866.  
  7867.                 Word size  All values which are not otherwise identified
  7868.                            are two byte integers (16 bits).  This is the
  7869.                            native integer size of most IBM PC C-compilers
  7870.                            but not for Macintosh and Sun C-compilers.
  7871.  
  7872.                Byte order  All integers are stored high byte first (big-
  7873.                            endian order).  This is the native mode for
  7874.                            Macintosh's and Sun's but not the native mode
  7875.                            for IBM PC's.
  7876.  
  7877.                            See below for a CPU independent method to read
  7878.                            and write 2-byte integers.
  7879.  
  7880.              Pixel format  Paletted files are stored one byte per pixel.
  7881.  
  7882.                            True colour files are stored as three bytes per
  7883.                            pixel in red, green, blue order.
  7884.  
  7885.                   Padding  Neither the palette information nor the pixel
  7886.                            data is padded to anything other than a byte
  7887.                            boundary.  This means that if you store a file
  7888.                            which is 13 by 11 pixels it will occupy 429
  7889.                            bytes if stored as a true colour file (not
  7890.                            including the header), or 143 bytes if stored as
  7891.                            a paletted file (not including the header and
  7892.                            palette data).
  7893.  
  7894.  
  7895.  
  7896.  
  7897.  
  7898.  
  7899.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     F-2
  7900.  
  7901.  
  7902.  
  7903.                       Hex  Numbers including a 0x prefix are hex; all other
  7904.                            numbers are decimal.
  7905.  
  7906.  
  7907.  
  7908.           File format      The header for a paletted file is 32 bytes plus
  7909.                            the size of the palette.  The header for a true
  7910.                            colour file is exactly 32 bytes (a true colour
  7911.                            file contains no palette).
  7912.  
  7913.              Magic number  Six bytes used to identify the file as a HSI Raw
  7914.                            file:
  7915.  
  7916.                                 0x6d 0x68 0x77 0x61 0x6e 0x68
  7917.  
  7918.                   Version  An integer used to identify the version HSI
  7919.                            file:
  7920.  
  7921.                                 0x0004
  7922.  
  7923.                     Width  An integer indicating the width of the image (in
  7924.                            pixels).
  7925.  
  7926.                    Height  An integer indicating the height of the image
  7927.                            (in pixels).
  7928.  
  7929.              Palette size  An integer indicating the number of entries in
  7930.                            the palette.  Range is 2 to 256.  A 0 indicates
  7931.                            a true colour image (which has no palette data).
  7932.  
  7933.            Horizontal DPI  An integer indicating the horizontal resolution
  7934.                            of the image, in dots per inch.  A zero
  7935.                            indicates that the resolution is unknown.  A
  7936.                            negative number is used if only the aspect ratio
  7937.                            is known.
  7938.  
  7939.              Vertical DPI  An integer indicating the vertical resolution of
  7940.                            the image, in dots per inch.  A zero indicates
  7941.                            that the resolution is unknown.  A negative
  7942.                            number is used if only the aspect ratio is
  7943.                            known.
  7944.  
  7945.                     Gamma  An integer indicating the gamma of the image,
  7946.                            scaled by 100 (a gamma of 2.2 is stored as 220).
  7947.                            A zero indicates that the gamma is not known.
  7948.  
  7949.                  Reserved  Twelve bytes reserved for future use.  Should be
  7950.                            set to zero when writing.
  7951.  
  7952.  
  7953.  
  7954.  
  7955.  
  7956.  
  7957.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     F-3
  7958.  
  7959.  
  7960.  
  7961.                   Palette  The palette data is stored as 3 bytes per
  7962.                            palette entry.  The bytes are in red, green,
  7963.                            blue order; 0 is black, 0xff is full intensity.
  7964.  
  7965.                            True colour raw files have no palette.
  7966.  
  7967.                Image data  The image data.
  7968.  
  7969.  
  7970.  
  7971.  
  7972.  
  7973.  
  7974.  
  7975.  
  7976.  
  7977.           Example files
  7978.  
  7979.           8 bit paletted,  6D 68 77 61 6E 68 00 04  01 40 00 C8 01 00 00 00
  7980.                320 x 200:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
  7981.                            49 24 24 24 00 00 00 00  00 DB 6D 6D FF 92 92 FF
  7982.                            B6 B6 92 49 49 FF DB DB  FF B6 92 FF FF DB FF DB
  7983.                            B6 FF FF FF B6 6D 6D 6D  24 24 DB 92 6D 6D 49 49
  7984.                            ...
  7985.  
  7986.  
  7987.               24 bit true  6D 68 77 61 6E 68 00 04  01 40 00 C8 00 00 00 00
  7988.                   colour,  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
  7989.                320 x 200:  49 24 24 49 24 24 49 24  24 49 24 24 49 24 24 49
  7990.                            24 24 49 24 24 49 24 24  49 24 24 49 24 24 49 24
  7991.                            24 49 24 24 49 24 24 49  24 24 49 24 24 49 24 24
  7992.                            ...
  7993.  
  7994.  
  7995.           Reading a two
  7996.           byte integer
  7997.                                 int putWord(int i, FILE *stream) {
  7998.                                    putc(i>>8, stream);
  7999.                                    return(putc(i&0xff, stream));
  8000.                                 }
  8001.  
  8002.           Writing a two
  8003.           byte integer
  8004.                                 int getWord(int i, FILE *stream) {
  8005.                                    register int temp;
  8006.                                    temp=getc(stream)<<8;
  8007.                                    return(getc(stream) | temp);
  8008.                                 }
  8009.  
  8010.  
  8011.  
  8012.  
  8013.  
  8014.  
  8015.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     F-4
  8016.  
  8017.  
  8018.  
  8019.  
  8020.  
  8021.                                                                           G
  8022.  
  8023.  
  8024.  
  8025.           Undercolour Removal Files
  8026.           -----------------------------------------------------------------
  8027.           -----------------------------------------------------------------
  8028.  
  8029.  
  8030.           Summary          Undercolour removal files are text files which
  8031.                            control the conversion from RGB to CMYK colour
  8032.                            space.
  8033.  
  8034.                            This conversion consists of four steps.  The
  8035.                            first is to convert an RGB value to an ideal CMY
  8036.                            value; this simply involves negating the RGB
  8037.                            values.  The next step is to determine how much
  8038.                            black is in that colour; this is done by finding
  8039.                            the minimum of the CMY values and using that as
  8040.                            an index into the black removal tables
  8041.                            documented below.  These tables have independent
  8042.                            values for how much black to use for that pixel
  8043.                            and how much black to subtract from the CMY
  8044.                            values.  Next, a linear transform is optionally
  8045.                            applied to the CMY portion of the CMYK pixel.
  8046.                            Finally the CMYK values are optionally
  8047.                            translated, independently, through the CMYK
  8048.                            density correction tables (this last step is
  8049.                            only used if Alchemy is going to dither the
  8050.                            image for output on a 1 bit per pixel per
  8051.                            component device).
  8052.  
  8053.           File format      Any line beginning with ';' is a comment and is
  8054.                            ignored.
  8055.  
  8056.             Black removal  The first 256 non-comment lines contain
  8057.                    tables  undercolour removal values corresponding to
  8058.                            computed black values of 0 (white) to 255
  8059.                            (black).  Each of these lines has two numbers;
  8060.                            the first indicates how much black to use in
  8061.                            place of the computed black value corresponding
  8062.                            to the line, and the second indicates how much
  8063.                            black to subtract from the cyan, magenta, and
  8064.                            yellow components (this value must not be
  8065.                            greater than the corresponding computed black
  8066.                            value).
  8067.  
  8068.                            After the black removal block the remaining
  8069.                            blocks may appear in any order:
  8070.  
  8071.  
  8072.  
  8073.  
  8074.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     G-1
  8075.  
  8076.  
  8077.  
  8078.                CMY linear  If there is a line which says only "HSI CMY
  8079.                 transform  matrix" then the next 3 non-comment lines
  8080.                            contain a matrix representing a linear transform
  8081.                            which is applied to the cyan, magenta, and
  8082.                            yellow components after black removal and before
  8083.                            applying the density map.  The entries are
  8084.                            normalized around 256.  The first row and column
  8085.                            represent cyan, the second magenta, and the
  8086.                            third yellow.  The rows are multiplied by the
  8087.                            input cyan, magenta, and yellow values to create
  8088.                            the corrected values.  A matrix of
  8089.  
  8090.                                 256   0   0
  8091.                                   0 256   0
  8092.                                   0   0 256
  8093.  
  8094.                            is equivalent to omitting the matrix and causes
  8095.                            no correction to take place.  In this case it
  8096.                            would be preferable to omit the matrix as the
  8097.                            conversion will run slightly faster without it.
  8098.  
  8099.              CMYK density  If there is a line which says only "HSI CMYK
  8100.                correction  density map" then the next 256 non-comment lines
  8101.                    tables  contain density correction tables, corresponding
  8102.                            to cyan, magenta, yellow, and black values of 0
  8103.                            (white) to 255.  Each of these lines has four
  8104.                            numbers representing, in order, the amount of
  8105.                            cyan, magenta, yellow, and black to use in place
  8106.                            of the corresponding computed values.  These
  8107.                            tables are only applied during dithering; they
  8108.                            will not be used for those CMYK output formats
  8109.                            which are continuous tone, as devices which take
  8110.                            continuous tone input data should be doing their
  8111.                            own correction.
  8112.  
  8113.           Example          The following undercolour removal file has
  8114.                            undercolour removal tables, CMYK density
  8115.                            correction tables, and a CMY colour correction
  8116.                            matrix.
  8117.  
  8118.                                 ; Undercolour removal file
  8119.                                 ;
  8120.                                   0   0
  8121.                                   1   1
  8122.                                   1   1
  8123.                                   2   2
  8124.                                   3   3
  8125.                                 ... (256 entries total)
  8126.                                 169 169
  8127.                                 169 169
  8128.                                 170 170
  8129.                                 ;
  8130.  
  8131.  
  8132.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     G-2
  8133.  
  8134.  
  8135.  
  8136.                                 HSI CMY matrix
  8137.                                 ;the following matrix leaves the
  8138.                                 ; Cyan and Yellow planes alone, and
  8139.                                 ; subtracts a bit from the Magenta
  8140.                                 ; plane when there's Cyan present.
  8141.                                 ;
  8142.                                 256   0   0
  8143.                                 -32 256   0
  8144.                                   0   0 256
  8145.                                 ;
  8146.                                 HSI CMYK density map
  8147.                                 ;
  8148.                                   0   0   0   0
  8149.                                   0   0   0   0
  8150.                                   0   0   0   0
  8151.                                   0   0   0   0
  8152.                                 ... (256 entries total)
  8153.                                 246 246 246 246
  8154.                                 248 248 248 248
  8155.                                 251 251 251 251
  8156.                                 253 253 253 253
  8157.                                 255 255 255 255
  8158.  
  8159.  
  8160.  
  8161.  
  8162.  
  8163.  
  8164.  
  8165.  
  8166.  
  8167.  
  8168.  
  8169.  
  8170.  
  8171.  
  8172.  
  8173.  
  8174.  
  8175.  
  8176.  
  8177.  
  8178.  
  8179.  
  8180.  
  8181.  
  8182.  
  8183.  
  8184.  
  8185.  
  8186.  
  8187.  
  8188.  
  8189.  
  8190.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     G-3
  8191.  
  8192.  
  8193.  
  8194.  
  8195.  
  8196.                                                                           H
  8197.  
  8198.  
  8199.  
  8200.           PAL Files
  8201.           -----------------------------------------------------------------
  8202.           -----------------------------------------------------------------
  8203.  
  8204.  
  8205.           Overview         PAL files are text files which contain a palette
  8206.                            in an ASCII form.  Alchemy can extract palettes
  8207.                            from other file formats and write PAL files.
  8208.                            Alchemy can also use PAL files when converting
  8209.                            images.
  8210.  
  8211.           File format      The first line contains the letters "PAL"; this
  8212.                            identifies the file as a palette file.
  8213.  
  8214.                            The next line contains an integer indicating the
  8215.                            number of palette entries.  Valid values are 2
  8216.                            through 256.
  8217.  
  8218.                            The rest of the file consists of lines of 3
  8219.                            numbers each (separated by spaces) representing
  8220.                            the red, green, and blue values for each of the
  8221.                            colours.  These have a range of 0 (black) to 255
  8222.                            (full intensity).
  8223.  
  8224.           Example
  8225.                                 PAL
  8226.                                 8            ;# colours
  8227.                                   0   0   0  ;black
  8228.                                 255   0   0  ;bright red
  8229.                                   0 128   0  ;dark green
  8230.                                 255 255   0  ;yellow
  8231.                                   0   0 255  ;blue
  8232.                                 255   0 255  ;magenta
  8233.                                  63  63  63  ;gray
  8234.                                 255 255 255  ;white
  8235.  
  8236.  
  8237.  
  8238.  
  8239.  
  8240.  
  8241.  
  8242.  
  8243.  
  8244.  
  8245.  
  8246.  
  8247.  
  8248.  
  8249.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     H-1
  8250.  
  8251.  
  8252.  
  8253.  
  8254.  
  8255.                                                                           I
  8256.  
  8257.  
  8258.  
  8259.           Version History
  8260.           -----------------------------------------------------------------
  8261.           -----------------------------------------------------------------
  8262.  
  8263.  
  8264.           Version 1.5      Released for Sun SPARC, Sun-3, and MS-DOS.
  8265.           10/91
  8266.                    Format  Disabled JPEG arithmetic coding pending
  8267.                            resolution of patent issues.
  8268.                            Added optimum Huffman table generation for JPEG
  8269.                            compression.
  8270.                            Increase in JPEG compression and decompression
  8271.                            speed.
  8272.                            JFIF compatibility verified with Radius, Xing
  8273.                            Technology, and the PDJPEG group.
  8274.                            Reduced memory requirements when reading GIF
  8275.                            files.
  8276.                            The background colour value in GIF files is now
  8277.                            set to the darkest colour in the image.
  8278.                            Added 24 bit PCX support.
  8279.                            Added support for many additional types of
  8280.                            incorrect TIFF files.
  8281.                            Added numerous new file formats, including
  8282.                            Vivid, MTV, DCX, QDV, Erdas, QRT, GEM, Utah RLE,
  8283.                            ADEX, RTL, WPG, Pictor, Autologic, q0, BIF,
  8284.                            Stork, XWD, Scodl, and XBM.
  8285.  
  8286.                   Display  Added support for VESA compatible SVGA boards.
  8287.                            Added support for Sierra HiColor DAC.
  8288.  
  8289.                      Misc  Improved documentation.
  8290.                            Added high quality image scaling.
  8291.                            Added aspect ratio preservation flag for
  8292.                            scaling.
  8293.                            Added wildcard support.
  8294.                            Added support for 15 bits per pixel true colour,
  8295.                            including dithering 24->15 bpp.
  8296.                            Added serpentine raster and noise to dithering.
  8297.                            Added quiet flag.
  8298.                            Added option to not add extension to file names.
  8299.                            Added option to force use of minimum memory.
  8300.                            Added Spiff contrast enhancement.
  8301.                            Added undercolour removal control file for CMYK
  8302.                            formats.
  8303.  
  8304.  
  8305.  
  8306.  
  8307.  
  8308.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     I-1
  8309.  
  8310.  
  8311.  
  8312.                Bugs fixed  Reading and writing Group III and IV TIFF files.
  8313.                            Reading JFIF files with thumbnails.
  8314.                            Reading 24 bit BMP files.
  8315.                            Writing 24 bit PICT files.
  8316.                            Reading uncompressed PICTs.
  8317.                            Reading PICTs with DPI!=72.
  8318.                            Writing 24 bit EPS files.
  8319.                            Reading and writing RLE BMP files.
  8320.                            Reading and writing very large images on Sun-3s
  8321.                            and Sun-4s.
  8322.                            Writing DPI values correctly in ILBM files.
  8323.                            -E option wasn't forcing 16 colours.
  8324.  
  8325.  
  8326.  
  8327.           Version 1.4      Released for Sun SPARC, Sun-3, and MS-DOS.
  8328.           03/18/91
  8329.  
  8330.                    Format  Added Arithmetic coding and decoding for JPEG
  8331.                            compression.
  8332.                            Added 1 bit PCX file support.
  8333.                            Added new compression types to Targa.
  8334.                            Added PBM/PGM/PPM support.
  8335.                            Added GIF89A support for reading.
  8336.                            Added SGI support.
  8337.                            Added Windows BMP support.
  8338.                            Added writing Group III, Group IV, PICIO, and
  8339.                            SGI RLE Tiff compression types.
  8340.                            Added Encapsulated PostScript output.
  8341.                            Added HP PCL support.
  8342.  
  8343.  
  8344.                   Display  Added support for Video 7, Trident, Tseng 4000,
  8345.                            and IBM 8514/A display boards.
  8346.                            Added 320x200x256 display mode.
  8347.                            Added image scaling during display (which allows
  8348.                            display of the entire image on the screen and
  8349.                            preserves aspect ratio).
  8350.                            Images are centered on screen during display.
  8351.                            Before image display the screen is cleared to
  8352.                            the darkest colour.
  8353.  
  8354.  
  8355.  
  8356.  
  8357.  
  8358.  
  8359.  
  8360.  
  8361.  
  8362.  
  8363.  
  8364.  
  8365.  
  8366.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     I-2
  8367.  
  8368.  
  8369.  
  8370.                      Misc  Added image scaling.
  8371.                            Added conversion to monochrome images.
  8372.                            Preserve and allowing specifying of image aspect
  8373.                            ratio or resolution.
  8374.                            Added false colour palette conversion.
  8375.                            Added optimized EGA image generation support.
  8376.                            Added support for very large images.
  8377.                            Added palette sorting, paletted swapping, and
  8378.                            palette selection parameters.
  8379.                            Added Stucki and Jarvis, Judice, & Ninke
  8380.                            Dithering.
  8381.  
  8382.  
  8383.                Bugs fixed  Writing certain 1 bit Sun Raster files.
  8384.                            Reading incorrectly written PCX files.
  8385.                            Reading 24 bit RLE compressed Sun Raster files.
  8386.                            Reading incorrectly written ILBM files.
  8387.  
  8388.  
  8389.  
  8390.           Version 1.3      Released for Sun SPARC and MS-DOS.
  8391.           02/05/91
  8392.                   Formats  Reading Sun Run-Length-Encoded (RLE) files.
  8393.                            Added reading support for interleaved GIF files.
  8394.                            Added 8 bit RAW files.
  8395.                            Added optional smoothing on JPEG reading.
  8396.                            Added support for any colour component sub-
  8397.                            sampling on JPEG reading.
  8398.                            Targa files are now written bottom-up to make
  8399.                            other Targa software happy.
  8400.                            Added palette matching and PAL files.
  8401.  
  8402.                   Display  Added checking for supported VGA boards, warning
  8403.                            if board is recognized but not supported.
  8404.  
  8405.                      Misc  Made memory use more efficient (requiring less
  8406.                            virtual memory on Suns and less overlay swapping
  8407.                            on PCs).
  8408.                            Numerous miscellaneous performance improvements,
  8409.                            (dramatic for some conversions; hardly
  8410.                            noticeable for others).
  8411.  
  8412.                Bugs fixed  Reading and writing 8 bit Sun Raster files which
  8413.                            have an odd width.
  8414.                            Temporary files are now removed when program
  8415.                            exits because of an error.
  8416.  
  8417.  
  8418.  
  8419.  
  8420.           Version 1.2      First release for Sun SPARC systems.
  8421.           01/16/91
  8422.  
  8423.  
  8424.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     I-3
  8425.  
  8426.  
  8427.  
  8428.                Bugs fixed  Fixed several minor bugs (primarily aesthetic).
  8429.                            Made PCX file identifying and reading more
  8430.                            robust.
  8431.  
  8432.  
  8433.           Version 1.1      First release for MS-DOS.
  8434.           01/14/91
  8435.  
  8436.  
  8437.  
  8438.  
  8439.  
  8440.  
  8441.  
  8442.  
  8443.  
  8444.  
  8445.  
  8446.  
  8447.  
  8448.  
  8449.  
  8450.  
  8451.  
  8452.  
  8453.  
  8454.  
  8455.  
  8456.  
  8457.  
  8458.  
  8459.  
  8460.  
  8461.  
  8462.  
  8463.  
  8464.  
  8465.  
  8466.  
  8467.  
  8468.  
  8469.  
  8470.  
  8471.  
  8472.  
  8473.  
  8474.  
  8475.  
  8476.  
  8477.  
  8478.  
  8479.  
  8480.  
  8481.  
  8482.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     I-4
  8483.  
  8484.  
  8485.  
  8486.  
  8487.  
  8488.                                                                           J
  8489.  
  8490.  
  8491.  
  8492.           Acknowledgments
  8493.           -----------------------------------------------------------------
  8494.           -----------------------------------------------------------------
  8495.  
  8496.  
  8497.           Summary          Almost all the software which comprises Image
  8498.                            Alchemy was written in house.  However the TIFF
  8499.                            and 640x400 SVGA display modules are
  8500.                            modifications of software originally written by
  8501.                            other people.
  8502.  
  8503.                            Both of these modules are free for anyone's use
  8504.                            as long as proper credit is given as to the
  8505.                            origin of the software.
  8506.  
  8507.  
  8508.                      TIFF  Image Alchemy's TIFF I/O is based on libtiff
  8509.                            which is copyright by Sam Leffler and is used
  8510.                            with his permission.  If you are interested in
  8511.                            reading or writing TIFF files we strongly
  8512.                            suggest that you start with libtiff.
  8513.  
  8514.                            Libtiff is available by anonymous ftp as
  8515.                            ucbvax.berkeley.edu:pub/tiff/*.tar.Z or
  8516.                            uunet.uu.net:graphics/tiff.tar.Z.
  8517.  
  8518.                            If you can not get a copy of libtiff via
  8519.                            anonymous ftp please contact us for a free copy.
  8520.  
  8521.  
  8522.               VGA display  Image Alchemy's 640x400 SVGA display routines
  8523.                            are based on VGAKIT, written by John Bridges.
  8524.  
  8525.                            VGAKIT is available free of charge from a
  8526.                            variety of bulletin boards
  8527.  
  8528.                            If you can not find VGAKIT locally please
  8529.                            contact us for a free copy.
  8530.  
  8531.  
  8532.  
  8533.  
  8534.  
  8535.  
  8536.  
  8537.  
  8538.  
  8539.  
  8540.  
  8541.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     J-1
  8542.  
  8543.  
  8544.  
  8545.  
  8546.  
  8547.                                                                           K
  8548.  
  8549.  
  8550.  
  8551.           Other Useful Software
  8552.           -----------------------------------------------------------------
  8553.           -----------------------------------------------------------------
  8554.  
  8555.  
  8556.           Summary          There are several image processing packages
  8557.                            available for little or no cost.
  8558.  
  8559.                            Please be aware that we mention these software
  8560.                            packages only as a service to Image Alchemy
  8561.                            users.  We are not endorsing or recommending any
  8562.                            particular package.  Many of the packages are
  8563.                            not supported by their authors.
  8564.  
  8565.                            If you have trouble finding any of the listed
  8566.                            software please send us a blank tape or diskette
  8567.                            and we will send you a copy free of charge
  8568.                            (please be aware that the software may be quite
  8569.                            large; contact us first if you have any
  8570.                            questions).
  8571.  
  8572.                            If you know of any other software which would be
  8573.                            appropriate to add to this list please let us
  8574.                            know.
  8575.  
  8576.                            If you are the author of any of these packages
  8577.                            and you would rather not be on this list please
  8578.                            let us know.
  8579.  
  8580.  
  8581.  
  8582.  
  8583.  
  8584.           IBM PC
  8585.  
  8586.                    PicLab  A public-domain image file conversion and
  8587.                            printing tool.
  8588.                            Written by Lee Crocker and the Stone Soup Group.
  8589.                            Available via CompuServe.
  8590.  
  8591.                     Cshow  A shareware image viewing program.
  8592.                            Written by Bob Berry.
  8593.                            Available from:
  8594.                               Canyon State Systems and Software
  8595.                               PO Box 86
  8596.                               Sedona, AZ  86336
  8597.  
  8598.  
  8599.  
  8600.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     K-1
  8601.  
  8602.  
  8603.  
  8604.                     Vivid  A shareware ray-tracing program.
  8605.                            Written by Stephen B. Coy
  8606.                            Available from:
  8607.                               Stephen Coy
  8608.                               15205 NE 13th Pl., #2904
  8609.                               Bellevue, WA  98007
  8610.  
  8611.  
  8612.  
  8613.           Workstations     These programs are only available as source code
  8614.                            and generally require a workstation running UNIX
  8615.                            or one of its variants.
  8616.  
  8617.               Utah Raster  Written by Spencer W. Thomas, Rod G. Bogart, and
  8618.             Toolkit (URT)  James Painter.
  8619.                            Available via anonymous FTP as pub/urt-3.0.tar.Z
  8620.                            via anonymous ftp from cs.utah.edu,
  8621.                            weedeater.math.yale.edu, or
  8622.                            freebie.engin.umich.edu.
  8623.  
  8624.  
  8625.  
  8626.              Fuzzy Bitmap  Written by Michael Mauldin
  8627.              Manipulation  Available by anonymous ftp as
  8628.                     (FBM)  nl.cs.cmu.edu:/usr/mlm/ftp/fbm.tar.Z,
  8629.                            uunet.uu.net:pub/fbm.tar.Z, or
  8630.                            ucsd.edu:graphics/fbm.tar.Z.
  8631.  
  8632.           Portable BitMap  Written by Jef Poskanzer
  8633.                 (PBMPLUS)  Available by anonymous ftp as
  8634.                            expo.lcs.mit.edu:contrib/pbmplus.tar.Z or
  8635.                            ftp.ee.lbl.gov:pbmplus.tar.Z.
  8636.  
  8637.              Img Software  Written by Paul Raveling
  8638.                       Set  Available by anonymous ftp as
  8639.                            expo.lcs.mit.edu:contrib/img_1.3.tar.Z or
  8640.                            venera.isi.edu:pub/img_1.3.tar.Z.
  8641.  
  8642.  
  8643.  
  8644.  
  8645.  
  8646.  
  8647.  
  8648.  
  8649.  
  8650.  
  8651.  
  8652.  
  8653.  
  8654.  
  8655.  
  8656.  
  8657.  
  8658.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.     K-2
  8659.  
  8660.  
  8661.  
  8662.  
  8663.  
  8664.  
  8665.  
  8666.  
  8667.  
  8668.           Glossary
  8669.           -----------------------------------------------------------------
  8670.           -----------------------------------------------------------------
  8671.  
  8672.  
  8673.             Anonymous FTP  An easy way to transfer files via the Internet.
  8674.                            If you don't have Internet access you can't use
  8675.                            anonymous FTP; if you do have Internet access
  8676.                            you probably already know about it (if you
  8677.                            don't, ask your system administrator or local
  8678.                            network guru).
  8679.  
  8680.           Black and white  An image which contains just two colours, black
  8681.                            and white.  Many file formats, such as TIFF and
  8682.                            Sun Raster, have special variations for black
  8683.                            and white images.  You can force Alchemy to
  8684.                            write a black and white image by specifying
  8685.                            -b -c2 as options.
  8686.  
  8687.                 Dithering  A technique for reducing the amount of colour
  8688.                            banding in an image when converting from a large
  8689.                            number of different colours to a small number of
  8690.                            different colours.  Different dithering
  8691.                            techniques are usually named after the person or
  8692.                            persons who first invented them.  Alchemy
  8693.                            supports Floyd-Steinberg, Stucki, and JJN
  8694.                            dithering; these are further described in
  8695.                            "Digital Halftoning", by Robert Ulichnet, MIT
  8696.                            Press.
  8697.  
  8698.                Gray-scale  An image which contains just shades of gray.
  8699.                            Many file formats, such as TIFF and Silicon
  8700.                            Graphics, have special variations for gray-scale
  8701.                            images.  You can force Alchemy to write a gray-
  8702.                            scale image by specifying -b -8 as options.
  8703.  
  8704.  
  8705.  
  8706.  
  8707.  
  8708.  
  8709.  
  8710.  
  8711.  
  8712.  
  8713.  
  8714.  
  8715.  
  8716.  
  8717.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc. Gloss-1
  8718.  
  8719.  
  8720.  
  8721.                    Header  The portion of an image file that is not the
  8722.                            actual image data.  The data in a header
  8723.                            generally includes the image size (in pixels),
  8724.                            the image depth (in number of bits per pixel or
  8725.                            number of colours), and the palette (if the
  8726.                            image has a palette).  Some file formats include
  8727.                            quite a bit of additional data in the header,
  8728.                            such as:  the name of the image, the date and
  8729.                            time the image was created, and the latitude and
  8730.                            longitude of the image (primarily used by
  8731.                            satellite image data).  The header is called the
  8732.                            header because it usually appears at the head of
  8733.                            the file.  Some file formats store information
  8734.                            which is usually found in the header in a
  8735.                            separate file.
  8736.  
  8737.           Heckbert colour  A technique for reducing the number of colours
  8738.              quantization  needed by an image, typically used to convert a
  8739.                            true colour image to a paletted image.  Named
  8740.                            after Paul Heckbert who originally described the
  8741.                            technique in "Color Image Quantization for Frame
  8742.                            Buffer Display", SIGGRAPH '82 Proceedings, p.
  8743.                            297.
  8744.  
  8745.              Magic Number  A number or sequence of numbers that is found at
  8746.                            or near the start of an image file so that
  8747.                            software may determine what type of format the
  8748.                            file is.  Most formats have a well defined magic
  8749.                            number; some formats do not, in which case
  8750.                            Alchemy examines various parameters in the
  8751.                            header of the file and guesses what format the
  8752.                            image is.
  8753.  
  8754.                  Paletted  An image which isn't true colour.  Each pixel in
  8755.                            the image is an index into a table of values
  8756.                            (typically red, green, and blue) which describe
  8757.                            the colour of that pixel.  Most paletted images
  8758.                            are limited to 8 bits of information, which
  8759.                            allows 256 unique colours.  Most display
  8760.                            adapters only allow the display of paletted
  8761.                            images (Alchemy can display true colour images
  8762.                            on those display adapters by using a uniform
  8763.                            palette).
  8764.  
  8765.               True colour  An image which does not contain a palette.  Each
  8766.                            pixel in the image is represented by at least
  8767.                            three values, typically red, green, and blue.
  8768.                            True colour images are generally produced by
  8769.                            scanners and digitizers and are better quality
  8770.                            and much larger than paletted images.  Most
  8771.                            display systems can not display true colour
  8772.                            images.
  8773.  
  8774.  
  8775.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc. Gloss-2
  8776.  
  8777.  
  8778.  
  8779.  
  8780.  
  8781.  
  8782.  
  8783.  
  8784.  
  8785.           References
  8786.           -----------------------------------------------------------------
  8787.           -----------------------------------------------------------------
  8788.  
  8789.  
  8790.           General Computer Computer Graphics - Principles and Practice,
  8791.           Graphics         Second Edition
  8792.                            (Commonly referred to as Foley and van Dam)
  8793.                            J.D. Foley, A. van Dam, S.K. Feiner, and J.F.
  8794.                            Hughes
  8795.                            Addison-Wesley
  8796.                            ISBN 0-201-12110-7
  8797.  
  8798.                            Principles of Interactive Computer Graphics
  8799.                            (Commonly referred to as Newman and Sproull)
  8800.                            W.M. Newman and R.F. Sproull
  8801.                            McGraw-Hill
  8802.                            ISBN 0-07-046338-7
  8803.  
  8804.                            Algorithms for Graphics and Image Processing
  8805.                            Theo Pavlidis
  8806.                            Computer Science Press
  8807.                            ISBN 0-914894-65-X
  8808.  
  8809.                            Graphics Gems
  8810.                            Andrew S. Glassner
  8811.                            Academic Press
  8812.                            ISBN 0-12-286165-5
  8813.  
  8814.                            Graphics Gems II
  8815.                            James Arvo
  8816.                            Academic Press
  8817.                            ISBN 0-12-064480-0
  8818.  
  8819.                            Bit-Mapped Graphics
  8820.                            Steve Rimmer
  8821.                            Windcrest
  8822.                            ISBN 0-8306-3558-0
  8823.  
  8824.  
  8825.  
  8826.  
  8827.  
  8828.  
  8829.  
  8830.  
  8831.  
  8832.  
  8833.  
  8834.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.   Ref-1
  8835.  
  8836.  
  8837.  
  8838.           Specific Topics
  8839.  
  8840.                    Colour  The Reproduction of Colour in Photography,
  8841.                            Printing & Television
  8842.                            R.W.G. Hunt
  8843.                            Fountain Press
  8844.                            ISBN 0 85242 356 X
  8845.  
  8846.                 Dithering  Digital Halftoning
  8847.                            Robert Ulichnet
  8848.                            MIT Press.
  8849.                            ISBN 0-262-21009-6
  8850.  
  8851.             Image Scaling  Digital Image Warping
  8852.                            George Wolberg
  8853.                            IEEE Computer Society Press Monograph
  8854.                            ISBN 0-8186-8944-7
  8855.  
  8856.           VGA Programming  Programmer's Guide to the EGA and VGA Cards,
  8857.                            Second Edition
  8858.                            Richard F. Ferraro
  8859.                            Addison-Wesley
  8860.                            ISBN 0-201-57025-4
  8861.  
  8862.  
  8863.  
  8864.  
  8865.  
  8866.  
  8867.  
  8868.  
  8869.  
  8870.  
  8871.  
  8872.  
  8873.  
  8874.  
  8875.  
  8876.  
  8877.  
  8878.  
  8879.  
  8880.  
  8881.  
  8882.  
  8883.  
  8884.  
  8885.  
  8886.  
  8887.  
  8888.  
  8889.  
  8890.  
  8891.  
  8892.      Image Alchemy v1.5  Copyright (c) 1990-91 Handmade Software Inc.   Ref-2
  8893.  
  8894.  
  8895.                               Image Alchemy Order Form
  8896.  
  8897.     Qty    Description                                       Price     Total
  8898.  
  8899.  
  8900.     _____  Image Alchemy for MS-DOS (Dual Media)              79.95  __________
  8901.  
  8902.     _____  Image Alchemy/386 for 80386 Protected Mode (3.5") 199.95  __________
  8903.  
  8904.     _____  Image Alchemy/SPARC for Sun (3.5")                199.95  __________
  8905.  
  8906.     _____  Image Alchemy/SPARC for Sun (1/4")                199.95  __________
  8907.  
  8908.     _____  Image Alchemy/6000 for IBM RS/6000 (3.5")         199.95  __________
  8909.  
  8910.     _____  Image Alchemy/Unix for 386 Unix (3.5")            199.95  __________
  8911.  
  8912.  
  8913.                                                           Sub-Total: __________
  8914.  
  8915.                       California Residents add applicable sales tax: __________
  8916.  
  8917.       Shipping and handling       UPS Ground (US only)         4.00
  8918.       (per copy)                  FedEx Second Day (US only)   8.00
  8919.                                   FedEx Overnight (US only)   20.00
  8920.                                   International AirMail       12.00
  8921.                                   International Express Mail  30.00  __________
  8922.                                                                      
  8923.                                                         Total (US$): __________
  8924.  
  8925.  
  8926.     Circle Payment form:       Check      Visa       MC       Amex
  8927.  
  8928.  
  8929.     Card #: _____________________________________     Exp. Date: ______________     
  8930.  
  8931.  
  8932.     Signature: ________________________________________________________________
  8933.  
  8934.  
  8935.     Ship to:                             Bill to:
  8936.     Name: _____________________________  Name: ________________________________
  8937.  
  8938.     Company: __________________________  Company: _____________________________
  8939.  
  8940.     Address: __________________________  Address: _____________________________
  8941.  
  8942.     City: _____________________________  City: ________________________________
  8943.  
  8944.     State: ________  Zip: _____________  State: _________  Zip: _______________
  8945.  
  8946.     Phone: (______)____________________  Fax: (______)_________________________
  8947.  
  8948.     Send to:                                Phone: +1 408 358 1292
  8949.     Handmade Software, Inc.                 Fax:   +1 408 358 2694
  8950.     15951 Los Gatos Blvd., Ste. 17          Email: hsi@netcom.COM
  8951.     Los Gatos, CA  95032                    Email: 71330,3136 (CompuServe)